summaryrefslogtreecommitdiffstats
path: root/include/osdep.h
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-09-10 00:06:52 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-09-10 00:06:52 +0800
commit56e7ec2edacc18f3b323a35544dc577545eb24d4 (patch)
tree6ef013967bd762a48bfe0d003da51af614327600 /include/osdep.h
parent428f0736872120d93a2820d5012908f1f0ab6944 (diff)
downloadpttbbs-victor.solaris.tar
pttbbs-victor.solaris.tar.gz
pttbbs-victor.solaris.tar.bz2
pttbbs-victor.solaris.tar.lz
pttbbs-victor.solaris.tar.xz
pttbbs-victor.solaris.tar.zst
pttbbs-victor.solaris.zip
use Signal instead of signal, and define the correct one in osdep.hvictor.solaris
fix compile error git-svn-id: http://opensvn.csie.org/pttbbs/branches/victor.solaris@2188 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include/osdep.h')
-rw-r--r--include/osdep.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/include/osdep.h b/include/osdep.h
index c9223ba3..a7c719d1 100644
--- a/include/osdep.h
+++ b/include/osdep.h
@@ -4,7 +4,7 @@
/* os dependant include file, define */
#ifdef __FreeBSD__
- #if __FreeBSD__ >=5
+ #if __FreeBSD__ >= 5
#include <sys/limits.h>
#else
#include <machine/limits.h>
@@ -43,8 +43,21 @@
#define NEED_INET_PTON
#endif
+ #if __OS_MAJOR_VERSION__ == 5 && __OS_MAJOR_VERSION__ < 6
+ #define NEED_BSD_SIGNAL
+ #endif
+
#else
+
#warning "Unknown OSTYPE"
+
+#endif
+
+
+#ifdef Solaris
+ #define Signal (bsd_signal)
+#else
+ #define Signal (signal)
#endif