[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
netbsd patches
From: |
Michael Santos |
Subject: |
netbsd patches |
Date: |
Mon, 9 Aug 2004 22:20:24 -0400 |
User-agent: |
Mutt/1.4.2.1i |
Some fixes for building on NetBSD:
* IPv6 mapped addresses
* Use the highest version of Berkeley DB found
* Use statvfs on newer versions of NetBSD
--
Michael Santos <address@hidden>
Unix Administrator/NBS Technologies Inc.
Commerce Gateway
--- src/cfservd.c.orig 2004-08-03 04:04:56.000000000 -0400
+++ src/cfservd.c 2004-08-09 20:17:45.000000000 -0400
@@ -764,5 +764,5 @@
Debug("Bound to address %s on
%s=%d\n",sockaddr_ntop(ap->ai_addr),CLASSTEXT[VSYSTEMHARDCLASS],VSYSTEMHARDCLASS);
- if (VSYSTEMHARDCLASS == openbsd || VSYSTEMHARDCLASS == freebsd)
+ if (VSYSTEMHARDCLASS == openbsd || VSYSTEMHARDCLASS == freebsd ||
VSYSTEMHARDCLASS == netbsd)
{
continue; /* *bsd doesn't map ipv6 addresses */
--- configure.ac.orig 2004-08-09 20:55:01.000000000 -0400
+++ configure.ac 2004-08-09 20:55:48.000000000 -0400
@@ -159,4 +159,5 @@
if test -f "$BERKELEY_DB_DIR/include/$v/db.h"; then
BERKELEY_DB_CFLAGS="-I$BERKELEY_DB_DIR/include/$v"
+ break
fi
done
@@ -166,4 +167,5 @@
if test -f "$BERKELEY_DB_DIR/lib/lib$v.so"; then
BERKELEY_DB_LIB="-l$v"
+ break
fi
done
--- src/df.c.orig 2004-04-29 17:01:02.000000000 -0400
+++ src/df.c 2004-08-09 21:28:39.000000000 -0400
@@ -49,5 +49,5 @@
{
-#if defined SOLARIS || defined OSF || defined UNIXWARE
+#if defined SOLARIS || defined OSF || defined UNIXWARE || (defined(__NetBSD__)
&& __NetBSD_Version__ >= 200040000)
struct statvfs buf;
#elif defined ULTRIX
@@ -71,5 +71,5 @@
return CF_INFINITY;
}
-#elif defined SOLARIS || defined OSF || defined UNIXWARE
+#elif defined SOLARIS || defined OSF || defined UNIXWARE ||
(defined(__NetBSD__) && __NetBSD_Version__ >= 200040000)
if (statvfs (file, &buf) != 0)
{
@@ -78,5 +78,5 @@
return CF_INFINITY;
}
-#elif defined IRIX || defined SCO || defined CFCRAY || defined UNIXWARE
+#elif defined IRIX || defined SCO || defined CFCRAY || defined UNIXWARE ||
(defined(__NetBSD__) && __NetBSD_Version__ >= 200040000)
if (statfs (file, &buf, sizeof (struct statfs), 0) != 0)
{
- netbsd patches,
Michael Santos <=