diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-09-12 11:31:16 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-09-12 11:31:16 +0800 |
commit | 535e458a1b28ecdf69dddcace060807e462980fd (patch) | |
tree | 6321dcb267e99a267c85cc113695e27b76cb1f70 /include | |
parent | fa932118b9ab9bffa96c1e73ab4aa982f60292cb (diff) | |
download | pttbbs-535e458a1b28ecdf69dddcace060807e462980fd.tar pttbbs-535e458a1b28ecdf69dddcace060807e462980fd.tar.gz pttbbs-535e458a1b28ecdf69dddcace060807e462980fd.tar.bz2 pttbbs-535e458a1b28ecdf69dddcace060807e462980fd.tar.lz pttbbs-535e458a1b28ecdf69dddcace060807e462980fd.tar.xz pttbbs-535e458a1b28ecdf69dddcace060807e462980fd.tar.zst pttbbs-535e458a1b28ecdf69dddcace060807e462980fd.zip |
Solaris compatible
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2193 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
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 |