summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-08-10 20:23:11 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-08-10 20:23:11 +0800
commitda6382afa9cc31ed70b028839f8188953a061a9c (patch)
treed29c8ace07e370d3603a3ebec7f69b77204924fb /mbbsd
parent4ae3573244046eba0fc162f108738dce1f7299f4 (diff)
downloadpttbbs-da6382afa9cc31ed70b028839f8188953a061a9c.tar
pttbbs-da6382afa9cc31ed70b028839f8188953a061a9c.tar.gz
pttbbs-da6382afa9cc31ed70b028839f8188953a061a9c.tar.bz2
pttbbs-da6382afa9cc31ed70b028839f8188953a061a9c.tar.lz
pttbbs-da6382afa9cc31ed70b028839f8188953a061a9c.tar.xz
pttbbs-da6382afa9cc31ed70b028839f8188953a061a9c.tar.zst
pttbbs-da6382afa9cc31ed70b028839f8188953a061a9c.zip
replace FreeBSD macro with __FreeBSD__
replace Linux macro with __linux__ replace make with $(MAKE) OSTYPE in cmdline doesn't need anymore git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1091 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/chat.c4
-rw-r--r--mbbsd/osdep.c4
-rw-r--r--mbbsd/term.c6
3 files changed, 7 insertions, 7 deletions
diff --git a/mbbsd/chat.c b/mbbsd/chat.c
index 6346335a..55d3129d 100644
--- a/mbbsd/chat.c
+++ b/mbbsd/chat.c
@@ -1,4 +1,4 @@
-/* $Id: chat.c,v 1.11 2003/02/23 16:39:27 victor Exp $ */
+/* $Id$ */
#include "bbs.h"
static int chatline, stop_line;
@@ -355,7 +355,7 @@ t_chat()
return -1;
}
memset(&sin, 0, sizeof sin);
-#ifdef FreeBSD
+#ifdef __FreeBSD__
sin.sin_len = sizeof(sin);
#endif
sin.sin_family = PF_INET;
diff --git a/mbbsd/osdep.c b/mbbsd/osdep.c
index 0c32db7a..4e6d286e 100644
--- a/mbbsd/osdep.c
+++ b/mbbsd/osdep.c
@@ -1,7 +1,7 @@
-/* $Id: osdep.c,v 1.7 2003/01/23 18:19:55 in2 Exp $ */
+/* $Id$ */
#include "bbs.h"
-#ifdef Linux
+#ifdef __linux__
#include <sys/types.h>
#include <string.h>
diff --git a/mbbsd/term.c b/mbbsd/term.c
index a0f83354..54acc2a6 100644
--- a/mbbsd/term.c
+++ b/mbbsd/term.c
@@ -1,4 +1,4 @@
-/* $Id: term.c,v 1.11 2002/11/08 21:12:58 in2 Exp $ */
+/* $Id$ */
#include "bbs.h"
int tgetent(const char *bp, char *name);
@@ -52,7 +52,7 @@ outcf(int ch)
}
#endif
-#ifndef Linux
+#ifndef __linux__
static void
term_resize(int sig)
{
@@ -90,7 +90,7 @@ term_resize(int sig)
int
term_init()
{
-#ifndef Linux
+#ifndef __linux__
signal(SIGWINCH, term_resize);
#endif
return YEA;