diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/bbs.h | 4 | ||||
-rw-r--r-- | include/proto.h | 12 |
2 files changed, 13 insertions, 3 deletions
diff --git a/include/bbs.h b/include/bbs.h index 654bb83c..ea0de9da 100644 --- a/include/bbs.h +++ b/include/bbs.h @@ -37,7 +37,11 @@ #include <sys/sem.h> #include <sys/msg.h> +#ifdef TIMET64 typedef uint32_t time4_t; +#else +typedef time_t time4_t; +#endif /* our header */ #include "config.h" diff --git a/include/proto.h b/include/proto.h index 434e8e3d..b211ff1c 100644 --- a/include/proto.h +++ b/include/proto.h @@ -574,9 +574,15 @@ int towrite(int fd, void *buf, int len); #ifdef PLAY_ANGEL void pressanykey_or_callangel(void); #endif -struct tm *localtime4(time4_t *); -time4_t time4(time4_t *); -char *ctime4(time4_t *); +#ifdef TIMET64 + struct tm *localtime4(time4_t *); + time4_t time4(time4_t *); + char *ctime4(time4_t *); +#else + #define localtime4(a) localtime(a) + #define time4(a) time(a) + #define ctime4(a) ctime(a) +#endif /* syspost */ int post_msg(char* bname, char* title, char *msg, char* author); |