summaryrefslogtreecommitdiff
path: root/databases/tokyotyrant/patches/patch-ac
blob: 4558c33566e3d35c89d21911cc9f4d8e0c3def6b (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
$NetBSD: patch-ac,v 1.6 2010/01/17 02:49:05 obache Exp $

Add NetBSD and DragonFly support.
http://sourceforge.net/tracker/index.php?func=detail&aid=2447593&group_id=200242&atid=972717

--- myconf.h.orig	2009-12-08 08:34:21.000000000 +0000
+++ myconf.h
@@ -44,6 +44,11 @@
 #define _SYS_OPENBSD_
 #define TTSYSNAME   "OpenBSD"
 
+#elif defined(__DragonFly__)
+
+#define _SYS_DRAGONFLY_
+#define TTSYSNAME   "DragonFly"
+
 #elif defined(__sun__) || defined(__sun)
 
 #define _SYS_SUNOS_
@@ -92,7 +97,7 @@
 #endif
 
 #if !defined(_SYS_LINUX_) && !defined(_SYS_FREEBSD_) && !defined(_SYS_MACOSX_) && \
-  !defined(_SYS_SUNOS_)
+  !defined(_SYS_SUNOS_) && !defined(_SYS_NETBSD_) && !defined(_SYS_DRAGONFLY_)
 #error =======================================
 #error Your platform is not supported.  Sorry.
 #error =======================================
@@ -215,7 +220,7 @@
 #include <tctdb.h>
 #include <tcadb.h>
 
-#if defined(_SYS_FREEBSD_) || defined(_SYS_MACOSX_)
+#if defined(_SYS_FREEBSD_) || defined(_SYS_MACOSX_) || defined(_SYS_NETBSD_) || defined(_SYS_DRAGONFLY_)
 #define TTUSEKQUEUE    1
 #elif defined(_SYS_SUNOS_)
 
@@ -242,7 +247,7 @@ typedef struct { int portev_object; } po
  *************************************************************************************************/
 
 
-#if defined(_SYS_FREEBSD_) || defined(_SYS_NETBSD_) || defined(_SYS_OPENBSD_)
+#if defined(_SYS_FREEBSD_)
 #define nan(TC_a)      strtod("nan", NULL)
 #define nanl(TC_a)     ((long double)strtod("nan", NULL))
 #endif