summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Hazel <ph10@hermes.cam.ac.uk>2007-06-27 08:46:28 +0000
committerPhilip Hazel <ph10@hermes.cam.ac.uk>2007-06-27 08:46:28 +0000
commit4d9c3e57c7decda537f4dab71b4d0880514334f6 (patch)
treec9397db72c97c4b3c13727e59aaebcfce426a2b6
parent321f3596d3d1a331feae4c5b4e520f47ce7d8890 (diff)
NetBSD-specific configuration patches from David Brownlee.
-rw-r--r--src/OS/Makefile-NetBSD4
-rw-r--r--src/OS/Makefile-NetBSD-a.out4
-rw-r--r--src/OS/os.h-NetBSD8
3 files changed, 11 insertions, 5 deletions
diff --git a/src/OS/Makefile-NetBSD b/src/OS/Makefile-NetBSD
index 1e7cbc127..675345504 100644
--- a/src/OS/Makefile-NetBSD
+++ b/src/OS/Makefile-NetBSD
@@ -1,9 +1,9 @@
-# $Cambridge: exim/src/OS/Makefile-NetBSD,v 1.2 2005/05/23 16:58:55 fanf2 Exp $
+# $Cambridge: exim/src/OS/Makefile-NetBSD,v 1.3 2007/06/27 08:46:28 ph10 Exp $
# Exim: OS-specific make file for NetBSD (ELF object format)
CHOWN_COMMAND=/usr/sbin/chown
-CFLAGS=-O
+CFLAGS?=-O2
HAVE_SA_LEN=YES
HAVE_IPV6=YES
diff --git a/src/OS/Makefile-NetBSD-a.out b/src/OS/Makefile-NetBSD-a.out
index 350689d2e..91ad7a6f2 100644
--- a/src/OS/Makefile-NetBSD-a.out
+++ b/src/OS/Makefile-NetBSD-a.out
@@ -1,9 +1,9 @@
-# $Cambridge: exim/src/OS/Makefile-NetBSD-a.out,v 1.2 2005/05/23 16:58:55 fanf2 Exp $
+# $Cambridge: exim/src/OS/Makefile-NetBSD-a.out,v 1.3 2007/06/27 08:46:28 ph10 Exp $
# Exim: OS-specific make file for NetBSD (a.out/COFF object format)
CHOWN_COMMAND=/usr/sbin/chown
-CFLAGS=-O
+CFLAGS?=-O2
HAVE_SA_LEN=YES
HAVE_IPV6=YES
diff --git a/src/OS/os.h-NetBSD b/src/OS/os.h-NetBSD
index 2edcad972..1d6d07070 100644
--- a/src/OS/os.h-NetBSD
+++ b/src/OS/os.h-NetBSD
@@ -1,4 +1,4 @@
-/* $Cambridge: exim/src/OS/os.h-NetBSD,v 1.3 2006/03/16 12:25:24 ph10 Exp $ */
+/* $Cambridge: exim/src/OS/os.h-NetBSD,v 1.4 2007/06/27 08:46:28 ph10 Exp $ */
/* Exim: OS-specific C header file for NetBSD */
@@ -12,4 +12,10 @@ typedef struct flock flock_t;
#define os_strsignal strsignal
#define OS_STRSIGNAL
+#include <sys/param.h>
+
+#if __NetBSD_Version__ >= 299000900
+#define HAVE_SYS_STATVFS_H
+#endif
+
/* End */