diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-08-10 20:23:11 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-08-10 20:23:11 +0800 |
commit | da6382afa9cc31ed70b028839f8188953a061a9c (patch) | |
tree | d29c8ace07e370d3603a3ebec7f69b77204924fb /util | |
parent | 4ae3573244046eba0fc162f108738dce1f7299f4 (diff) | |
download | pttbbs-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 'util')
-rw-r--r-- | util/bbsctl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/bbsctl.c b/util/bbsctl.c index 936547a3..53aaede3 100644 --- a/util/bbsctl.c +++ b/util/bbsctl.c @@ -12,7 +12,7 @@ #include "pttstruct.h" #include "perm.h" -#ifdef FreeBSD +#ifdef __FreeBSD__ #include <sys/syslimits.h> #define SU "/usr/bin/su" #define CP "/bin/cp" @@ -21,7 +21,7 @@ #define IPCRM "/usr/bin/ipcrm" #define AWK "/usr/bin/awk" #endif -#ifdef Linux +#ifdef __linux__ #include <linux/limits.h> #define SU "/bin/su" #define CP "/bin/cp" @@ -187,7 +187,7 @@ int bbstest(int argc, char **argv) int Xipcrm(int argc, char **argv) { -#ifdef FreeBSD +#ifdef __FreeBSD__ char buf[256], cmd[256]; FILE *fp; sprintf(buf, IPCS " | " AWK " '{print $1 $2}'"); |