diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-11-09 05:12:58 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-11-09 05:12:58 +0800 |
commit | 10624ecf13fd3d2537619cb895334257882e06ae (patch) | |
tree | 89ecd74c1f6af002f1e6c71aa764bb2359934c7f /include | |
parent | 9a9be56f087bcab02f706ff36785c4ba0fbc2f19 (diff) | |
download | pttbbs-10624ecf13fd3d2537619cb895334257882e06ae.tar pttbbs-10624ecf13fd3d2537619cb895334257882e06ae.tar.gz pttbbs-10624ecf13fd3d2537619cb895334257882e06ae.tar.bz2 pttbbs-10624ecf13fd3d2537619cb895334257882e06ae.tar.lz pttbbs-10624ecf13fd3d2537619cb895334257882e06ae.tar.xz pttbbs-10624ecf13fd3d2537619cb895334257882e06ae.tar.zst pttbbs-10624ecf13fd3d2537619cb895334257882e06ae.zip |
Linux compatible
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@566 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r-- | include/bbs.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/bbs.h b/include/bbs.h index 9163656b..a83cd84f 100644 --- a/include/bbs.h +++ b/include/bbs.h @@ -28,7 +28,6 @@ #include <sys/types.h> #include <dirent.h> #include <sys/mman.h> -#include <machine/param.h> #include <sys/ipc.h> #include <sys/shm.h> #include <sys/sem.h> @@ -49,9 +48,17 @@ #ifndef INCLUDE_VAR_H #include "var.h" #endif + +/* os dependant include file, define */ #ifdef FreeBSD #include <machine/limits.h> -#else + #include <machine/param.h> +#endif +#ifdef Linux + #include <sys/param.h> #include <limits.h> + #define strlcpy(a,b,c) strncpy(a,b,c) + #define strlcat(a,b,c) strncat(a,b,c) #endif + #endif /* INCLUDE_BBS_H */ |