summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--innbbsd/Makefile4
-rw-r--r--mbbsd/brc.c5
-rw-r--r--mbbsd/osdep.c17
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)
{