summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-07-22 11:51:43 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-07-22 11:51:43 +0800
commitdfef8450db51ec44318415f48af592764160d2ea (patch)
tree11f1192842cd0bd0364f585bc0dddd1b81f3858e
parent64645b9c47fb5d1656e50045130b052420cd8389 (diff)
downloadpttbbs-dfef8450db51ec44318415f48af592764160d2ea.tar
pttbbs-dfef8450db51ec44318415f48af592764160d2ea.tar.gz
pttbbs-dfef8450db51ec44318415f48af592764160d2ea.tar.bz2
pttbbs-dfef8450db51ec44318415f48af592764160d2ea.tar.lz
pttbbs-dfef8450db51ec44318415f48af592764160d2ea.tar.xz
pttbbs-dfef8450db51ec44318415f48af592764160d2ea.tar.zst
pttbbs-dfef8450db51ec44318415f48af592764160d2ea.zip
for FreeBSD5
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@1074 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--docs/INSTALL1
-rw-r--r--include/bbs.h6
-rw-r--r--pttbbs.mk5
3 files changed, 10 insertions, 2 deletions
diff --git a/docs/INSTALL b/docs/INSTALL
index 9912d930..0c5b884e 100644
--- a/docs/INSTALL
+++ b/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/include/bbs.h b/include/bbs.h
index 7b4b4319..e119265d 100644
--- a/include/bbs.h
+++ b/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.mk b/pttbbs.mk
index 7b69dda6..265aaa46 100644
--- a/pttbbs.mk
+++ b/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