From 10624ecf13fd3d2537619cb895334257882e06ae Mon Sep 17 00:00:00 2001 From: in2 Date: Fri, 8 Nov 2002 21:12:58 +0000 Subject: Linux compatible git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@566 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/bbs.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'include/bbs.h') 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 #include #include -#include #include #include #include @@ -49,9 +48,17 @@ #ifndef INCLUDE_VAR_H #include "var.h" #endif + +/* os dependant include file, define */ #ifdef FreeBSD #include -#else + #include +#endif +#ifdef Linux + #include #include + #define strlcpy(a,b,c) strncpy(a,b,c) + #define strlcat(a,b,c) strncat(a,b,c) #endif + #endif /* INCLUDE_BBS_H */ -- cgit v1.2.3