diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-09-05 12:31:48 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-09-05 12:31:48 +0800 |
commit | 24b3e689cf6429d6a09ce8910d6b1735879bfdf4 (patch) | |
tree | bf03afe5dc7e6f9eb9bb71582c9e2a442d06689f /util | |
parent | dcf78b3ca3ff11ff35ec376bfc3fbff6923e154e (diff) | |
download | pttbbs-24b3e689cf6429d6a09ce8910d6b1735879bfdf4.tar pttbbs-24b3e689cf6429d6a09ce8910d6b1735879bfdf4.tar.gz pttbbs-24b3e689cf6429d6a09ce8910d6b1735879bfdf4.tar.bz2 pttbbs-24b3e689cf6429d6a09ce8910d6b1735879bfdf4.tar.lz pttbbs-24b3e689cf6429d6a09ce8910d6b1735879bfdf4.tar.xz pttbbs-24b3e689cf6429d6a09ce8910d6b1735879bfdf4.tar.zst pttbbs-24b3e689cf6429d6a09ce8910d6b1735879bfdf4.zip |
remove branch victor.screen
add branch victor.solaris with some modification
git-svn-id: http://opensvn.csie.org/pttbbs/branches/victor.solaris@2179 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util')
-rw-r--r-- | util/Makefile | 6 | ||||
-rw-r--r-- | util/merge_board.c | 4 | ||||
-rw-r--r-- | util/reaper.c | 4 | ||||
-rw-r--r-- | util/xchatd.h | 2 |
4 files changed, 12 insertions, 4 deletions
diff --git a/util/Makefile b/util/Makefile index 54e26131..68eb7ad8 100644 --- a/util/Makefile +++ b/util/Makefile @@ -24,14 +24,14 @@ 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 \ - merge_board xchatd bbsmail + userlist xchatd bbsmail merge_passwd \ + merge_board # 下面這些程式會被 install PROGS= ${UTIL_OBJS} ${CPROG_WITH_UTIL} ${CPROG_WITHOUT_UTIL} \ diff --git a/util/merge_board.c b/util/merge_board.c index 12f41346..b37f8c1a 100644 --- a/util/merge_board.c +++ b/util/merge_board.c @@ -7,6 +7,10 @@ #include "config.h" #include "pttstruct.h" +#ifdef Solaris +#include <strings.h> +#endif + typedef struct hash_t { char *brdname; struct hash_t *next; 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/xchatd.h b/util/xchatd.h index d0a6e1e4..fed869eb 100644 --- a/util/xchatd.h +++ b/util/xchatd.h @@ -1,4 +1,4 @@ -/* $Id: xchatd.h,v 1.1 2002/03/07 15:13:46 in2 Exp $ */ +/* $Id$ */ #ifndef _XCHAT_H_ #define _XCHAT_H_ |