diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-09-09 21:10:30 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-09-09 21:10:30 +0800 |
commit | 6944237f6f9c290924af32be4c93343712e86147 (patch) | |
tree | 9fb9f9d9c0db95aab1d700da8bdbd734b4980147 | |
parent | 83fdeaf59d8b442238981c5d6dd6854469848025 (diff) | |
download | pttbbs-6944237f6f9c290924af32be4c93343712e86147.tar pttbbs-6944237f6f9c290924af32be4c93343712e86147.tar.gz pttbbs-6944237f6f9c290924af32be4c93343712e86147.tar.bz2 pttbbs-6944237f6f9c290924af32be4c93343712e86147.tar.lz pttbbs-6944237f6f9c290924af32be4c93343712e86147.tar.xz pttbbs-6944237f6f9c290924af32be4c93343712e86147.tar.zst pttbbs-6944237f6f9c290924af32be4c93343712e86147.zip |
Makefile: add target "Solaris" depended on the old "solaris"
brc.c: big/little endian
osdep: add licence
git-svn-id: http://opensvn.csie.org/pttbbs/branches/victor.solaris@2186 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | innbbsd/Makefile | 4 | ||||
-rw-r--r-- | mbbsd/brc.c | 5 | ||||
-rw-r--r-- | mbbsd/osdep.c | 17 |
3 files changed, 23 insertions, 3 deletions
diff --git a/innbbsd/Makefile b/innbbsd/Makefile index 0aed889a..385eba17 100644 --- a/innbbsd/Makefile +++ b/innbbsd/Makefile @@ -93,8 +93,10 @@ hpux: irix: @$(MAKE) EXTRAFLAGS="-DMMAP -DIRIX -DSYSV" target +Solaris: solaris + solaris: - @$(MAKE) EXTRAFLAGS="-DMMAP -DSOLARIS -DSYSV -I/usr/local/include/ -I../include/" LDFLAGS="-L/usr/local/lib -liconv -lsocket -lnsl ../mbbsd/osdep.o" YACC="bison -y" target + @$(MAKE) EXTRAFLAGS="-DMMAP -DSOLARIS -DSYSV -I/usr/local/include/ -I../include/" LDFLAGS="-L/usr/local/lib -liconv -lsocket -lnsl -lkstat ../mbbsd/osdep.o" YACC="bison -y" target FreeBSD: @$(MAKE) CC=cc EXTRAFLAGS="-DBSD44 -DMMAP -DGETRUSAGE" LDFLAGS="-lcrypt -liconv" target diff --git a/mbbsd/brc.c b/mbbsd/brc.c index b3be8101..6c4ea053 100644 --- a/mbbsd/brc.c +++ b/mbbsd/brc.c @@ -96,8 +96,9 @@ time_t * brc_find_record(int bid, int *num) { char *p; - *num = 0; - p = brc_findrecord_in(brc_buf, brc_buf + brc_size, bid, (brcnbrd_t*)num); + brcnbrd_t tnum; + ptr = brc_findrecord_in(brc_buf, brc_buf + brc_size, bid, &tnum); + *num = tnum; if (p) return (time_t*)(p + sizeof(brcbid_t) + sizeof(brcnbrd_t)); *num = 0; diff --git a/mbbsd/osdep.c b/mbbsd/osdep.c index ac5dd97b..e7852177 100644 --- a/mbbsd/osdep.c +++ b/mbbsd/osdep.c @@ -322,6 +322,23 @@ unsetenv(name) #include <arpa/nameser.h> +/* + * Copyright (c) 1996 by Internet Software Consortium. + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS + * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE + * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL + * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR + * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS + * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS + * SOFTWARE. + */ + int inet_pton(int af, const char *src, void *dst) { |