blob: 6a44c4dff9b26c57fd679f1ac3809130021050bb (
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
|
$NetBSD: patch-ac,v 1.2 2009/02/03 13:57:56 obache Exp $
Add NetBSD support.
http://sourceforge.net/tracker/index.php?func=detail&aid=2447593&group_id=200242&atid=972717
--- myconf.h.orig 2009-02-02 02:33:22.000000000 +0000
+++ myconf.h
@@ -91,7 +91,7 @@
#endif
-#if !defined(_SYS_LINUX_) && !defined(_SYS_FREEBSD_) && !defined(_SYS_MACOSX_)
+#if !defined(_SYS_LINUX_) && !defined(_SYS_FREEBSD_) && !defined(_SYS_MACOSX_) && !defined(_SYS_NETBSD_)
#error =======================================
#error Your platform is not supported. Sorry.
#error =======================================
@@ -211,7 +211,7 @@
#include <tctdb.h>
#include <tcadb.h>
-#if defined(_SYS_FREEBSD_) || defined(_SYS_MACOSX_)
+#if defined(_SYS_FREEBSD_) || defined(_SYS_MACOSX_) || defined(_SYS_NETBSD_)
#define TTUSEKQUEUE 1
#else
#include <sys/epoll.h>
@@ -227,7 +227,7 @@
#define sizeof(a) ((int)sizeof(a))
-#if defined(_SYS_FREEBSD_) || defined(_SYS_NETBSD_) || defined(_SYS_OPENBSD_)
+#if defined(_SYS_FREEBSD_)
#define nan(TC_a) strtod("nan", NULL)
#endif
|