blob: 6e77ec8735287b6b0069f6bc5bef7a7d8ea610f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
$NetBSD: patch-ag,v 1.7 2005/08/23 02:31:44 reed Exp $
--- src/util/sys_defs.h.orig 2005-07-14 14:28:33.000000000 -0700
+++ src/util/sys_defs.h 2005-08-22 19:05:24.000000000 -0700
@@ -24,11 +24,12 @@
* 4.4BSD and close derivatives.
*/
#if defined(FREEBSD2) || defined(FREEBSD3) || defined(FREEBSD4) \
- || defined(FREEBSD5) \
+ || defined(FREEBSD5) || defined(FREEBSD6) \
|| defined(BSDI2) || defined(BSDI3) || defined(BSDI4) \
|| defined(OPENBSD2) || defined(OPENBSD3) \
- || defined(NETBSD1) || defined(NETBSD2) \
- || defined(EKKOBSD1)
+ || defined(NETBSD1) || defined(NETBSD2) || defined(NETBSD3) \
+ || defined(EKKOBSD1) \
+ || defined(DRAGONFLY1)
#define SUPPORTED
#include <sys/types.h>
#include <sys/param.h>
@@ -89,6 +90,14 @@
#define SOCKOPT_SIZE socklen_t
#endif
+#ifdef DRAGONFLY1
+#define HAS_DUPLEX_PIPE
+#define HAS_DEV_URANDOM
+#define HAS_ISSETUGID
+#define SOCKADDR_SIZE socklen_t
+#define SOCKOPT_SIZE socklen_t
+#endif
+
/* OpenBSD version is year+month */
#if OpenBSD >= 200000 /* XXX */
@@ -156,8 +165,13 @@
#define ALIAS_DB_MAP "hash:/etc/aliases"
#define GETTIMEOFDAY(t) gettimeofday(t,(struct timezone *) 0)
#define ROOT_PATH "/bin:/usr/bin:/sbin:/usr/sbin"
+#if (defined(__NetBSD__) && __NetBSD_Version__ >= 200040000) /* NetBSD 2.0D */
+#define USE_STATVFS
+#define STATVFS_IN_SYS_STATVFS_H
+#else
#define USE_STATFS
#define STATFS_IN_SYS_MOUNT_H
+#endif
#define HAS_POSIX_REGEXP
#define NORETURN void
#define PRINTFLIKE(x,y)
|