diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-09-12 11:31:16 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-09-12 11:31:16 +0800 |
commit | 535e458a1b28ecdf69dddcace060807e462980fd (patch) | |
tree | 6321dcb267e99a267c85cc113695e27b76cb1f70 /util | |
parent | fa932118b9ab9bffa96c1e73ab4aa982f60292cb (diff) | |
download | pttbbs-535e458a1b28ecdf69dddcace060807e462980fd.tar pttbbs-535e458a1b28ecdf69dddcace060807e462980fd.tar.gz pttbbs-535e458a1b28ecdf69dddcace060807e462980fd.tar.bz2 pttbbs-535e458a1b28ecdf69dddcace060807e462980fd.tar.lz pttbbs-535e458a1b28ecdf69dddcace060807e462980fd.tar.xz pttbbs-535e458a1b28ecdf69dddcace060807e462980fd.tar.zst pttbbs-535e458a1b28ecdf69dddcace060807e462980fd.zip |
Solaris compatible
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2193 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util')
-rw-r--r-- | util/Makefile | 4 | ||||
-rw-r--r-- | util/reaper.c | 4 | ||||
-rw-r--r-- | util/tunepasswd.c | 10 |
3 files changed, 7 insertions, 11 deletions
diff --git a/util/Makefile b/util/Makefile index 54e26131..e4e88871 100644 --- a/util/Makefile +++ b/util/Makefile @@ -24,13 +24,13 @@ CPROG_WITH_UTIL= \ reaper buildAnnounce inndBM shmctl \ outmail chkhbf checkmoney merge_dir \ transman angel gamblegive checkdir \ - chesscountry + chesscountry tunepasswd buildir # 下面這些程式, 會直接被 compile CPROG_WITHOUT_UTIL= \ shmsweep uhash_loader showboard \ countalldice webgrep bbsrf initbbs \ - userlist tunepasswd buildir merge_passwd \ + userlist merge_passwd \ merge_board xchatd bbsmail # 下面這些程式會被 install diff --git a/util/reaper.c b/util/reaper.c index 2fc587e0..7904566d 100644 --- a/util/reaper.c +++ b/util/reaper.c @@ -49,7 +49,11 @@ int check(int n, userec_t *u) { int main(int argc, char **argv) { now = time(NULL); +#ifdef Solaris + openlog("reaper", LOG_PID, SYSLOG_FACILITY); +#else openlog("reaper", LOG_PID | LOG_PERROR, SYSLOG_FACILITY); +#endif chdir(BBSHOME); attach_SHM(); diff --git a/util/tunepasswd.c b/util/tunepasswd.c index 1d575dcc..b617fb77 100644 --- a/util/tunepasswd.c +++ b/util/tunepasswd.c @@ -1,13 +1,5 @@ /* $Id$ */ -#include <stdio.h> -#include <string.h> -#include <unistd.h> -#include <sys/types.h> -#include <sys/stat.h> -#include <sys/file.h> -#include "config.h" -#include "pttstruct.h" -#include "common.h" +#include "bbs.h" int tune(int num) { int i, j, fin, fout; |