diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/bbs.h | 4 | ||||
-rw-r--r-- | include/osdep.h | 13 |
2 files changed, 13 insertions, 4 deletions
diff --git a/include/bbs.h b/include/bbs.h index 5b4dca21..3a2f0cb9 100644 --- a/include/bbs.h +++ b/include/bbs.h @@ -1,7 +1,10 @@ /* $id$ */ + #ifndef INCLUDE_BBS_H #define INCLUDE_BBS_H +#include "osdep.h" + #include <stdio.h> #include <string.h> #include <assert.h> @@ -34,7 +37,6 @@ #include <sys/sem.h> #include <sys/msg.h> -#include "osdep.h" /* our header */ #include "config.h" diff --git a/include/osdep.h b/include/osdep.h index a7c719d1..8e790595 100644 --- a/include/osdep.h +++ b/include/osdep.h @@ -9,13 +9,17 @@ #else #include <machine/limits.h> #endif + #include <machine/param.h> + #define _XOPEN_SOURCE + #define _ISOC99_SOURCE + #elif defined(__linux__) - #include <sys/param.h> + #define _GNU_SOURCE + #include <sys/ioctl.h> - #include <limits.h> #include <sys/file.h> /* for flock() */ #include <strings.h> /* for strcasecmp() */ @@ -32,10 +36,13 @@ #include <limits.h> #include <strings.h> /* for strcasecmp() */ + #define _ISOC99_SOURCE + #define NEED_FLOCK #define NEED_UNSETENV #define NEED_SCANDIR #define NEED_STRCASESTR + #define NEED_TIMEGM #if __OS_MAJOR_VERSION__ == 5 && __OS_MINOR_VERSION__ < 8 #define NEED_STRLCPY @@ -49,7 +56,7 @@ #else - #warning "Unknown OSTYPE" + #error "Unknown OSTYPE" #endif |