From 6944237f6f9c290924af32be4c93343712e86147 Mon Sep 17 00:00:00 2001 From: victor Date: Thu, 9 Sep 2004 13:10:30 +0000 Subject: 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 --- innbbsd/Makefile | 4 +++- mbbsd/brc.c | 5 +++-- 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 +/* + * 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) { -- cgit v1.2.3