diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-07-22 11:51:43 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-07-22 11:51:43 +0800 |
commit | 8eb6342572fb997b86dbe6c6b07ba0cd056db4b4 (patch) | |
tree | e29fc0401f7bb95b97cae84775367d2a9205cc45 | |
parent | 757ddf2c2c6ef87af84cab5583fc53f513a7285d (diff) | |
download | pttbbs-8eb6342572fb997b86dbe6c6b07ba0cd056db4b4.tar pttbbs-8eb6342572fb997b86dbe6c6b07ba0cd056db4b4.tar.gz pttbbs-8eb6342572fb997b86dbe6c6b07ba0cd056db4b4.tar.bz2 pttbbs-8eb6342572fb997b86dbe6c6b07ba0cd056db4b4.tar.lz pttbbs-8eb6342572fb997b86dbe6c6b07ba0cd056db4b4.tar.xz pttbbs-8eb6342572fb997b86dbe6c6b07ba0cd056db4b4.tar.zst pttbbs-8eb6342572fb997b86dbe6c6b07ba0cd056db4b4.zip |
for FreeBSD5
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@1074 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/docs/INSTALL | 1 | ||||
-rw-r--r-- | pttbbs/include/bbs.h | 6 | ||||
-rw-r--r-- | pttbbs/pttbbs.mk | 5 |
3 files changed, 10 insertions, 2 deletions
diff --git a/pttbbs/docs/INSTALL b/pttbbs/docs/INSTALL index 9912d930..0c5b884e 100644 --- a/pttbbs/docs/INSTALL +++ b/pttbbs/docs/INSTALL @@ -38,6 +38,7 @@ 10.修改 pttbbs.conf * 如果您是用 Linux系統, 請先安裝 pmake, 然後將 make alias 成 pmake * 11.執行 make OSTYPE=FreeBSD BBSHOME=/home/bbs all install + (若是使用 FreeBSD 5.x的話, 請如上 FreeBSD5=1 ) ( Linux使用者請把 "FreeBSD" 改成 "linux") (如果出現 iconv.h找不到的話, 請見 FAQ 7 ) 12.如果是新架起來的站, 請執行 cd sample; make install diff --git a/pttbbs/include/bbs.h b/pttbbs/include/bbs.h index 7b4b4319..e119265d 100644 --- a/pttbbs/include/bbs.h +++ b/pttbbs/include/bbs.h @@ -36,7 +36,11 @@ /* os dependant include file, define */ #ifdef FreeBSD - #include <machine/limits.h> + #ifdef FreeBSD5 + #include <sys/limits.h> + #else + #include <machine/limits.h> + #endif #include <machine/param.h> #endif #ifdef Linux diff --git a/pttbbs/pttbbs.mk b/pttbbs/pttbbs.mk index 7b69dda6..265aaa46 100644 --- a/pttbbs/pttbbs.mk +++ b/pttbbs/pttbbs.mk @@ -1,4 +1,4 @@ -# $Id: pttbbs.mk,v 1.7 2003/07/17 03:47:26 victor Exp $ +# $Id: pttbbs.mk,v 1.8 2003/07/22 03:51:43 in2 Exp $ # 定義基本初值 BBSHOME?= $(HOME) BBSHOME?= /home/bbs @@ -49,3 +49,6 @@ CFLAGS+= -DDEBUG CFLAGS+= -DNO_FORK .endif +.if defined(FreeBSD5) +CFLAGS+= -DFreeBSD5 +.endif |