blob: ca7d0c130d7f7fb515247ccfa8e6eb6a616b3db5 (
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
|
$NetBSD: patch-dr,v 1.1 2006/06/27 11:11:52 joerg Exp $
--- nsprpub/pr/include/md/_freebsd.h.orig 2006-06-26 14:27:03.000000000 +0000
+++ nsprpub/pr/include/md/_freebsd.h
@@ -40,7 +40,7 @@
#include "prthread.h"
-#if __FreeBSD__ >= 2
+#if defined(__FreeBSD__) && __FreeBSD__ >= 2
#include <osreldate.h> /* for __FreeBSD_version */
#endif
#include <sys/syscall.h>
@@ -79,7 +79,7 @@
#define _PR_NO_LARGE_FILES
#if defined(_PR_PTHREADS)
-#if __FreeBSD_version >= 400008
+#if defined(__DragonFly__) || defined(__FreeBSD__) &&__FreeBSD_version >= 400008
/*
* libc_r before this version of FreeBSD doesn't have poll().
* Although libc has poll(), it is not thread-safe so we can't
@@ -88,7 +88,7 @@
#define _PR_POLL_AVAILABLE
#endif
#else
-#if __FreeBSD_version >= 300000
+#if defined(__DragonFly__) || __FreeBSD_version >= 300000
#define _PR_POLL_AVAILABLE
#define _PR_USE_POLL
#endif
@@ -97,7 +97,7 @@
#define _PR_HAVE_SYSV_SEMAPHORES
#define PR_HAVE_SYSV_NAMED_SHARED_MEMORY
-#if __FreeBSD_version >= 400014
+#if defined(__DragonFly__) || __FreeBSD_version >= 400014
#define _PR_INET6
#define _PR_HAVE_INET_NTOP
#define _PR_HAVE_GETHOSTBYNAME2
|