blob: e27a3b1af40d7f703a8218ffe71a6bcf672cb5ec (
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-as,v 1.2 2007/03/14 17:12:47 yyamano Exp $
--- include/ptlib/unix/ptlib/pmachdep.h.orig 2004-11-16 09:30:38.000000000 +0900
+++ include/ptlib/unix/ptlib/pmachdep.h
@@ -217,7 +217,7 @@ typedef size_t socklen_t;
#endif
///////////////////////////////////////////////////////////////////////////////
-#elif defined(P_FREEBSD)
+#elif defined(P_FREEBSD) || defined(P_DRAGONFLY)
#if defined(P_PTHREADS)
#ifndef _THREAD_SAFE
@@ -241,7 +241,7 @@ typedef size_t socklen_t;
#include <netinet/tcp.h>
/* socklen_t is defined in FreeBSD 3.4-STABLE, 4.0-RELEASE and above */
-#if (P_FREEBSD <= 340000)
+#if defined(P_FREEBSD) && (P_FREEBSD <= 340000)
typedef int socklen_t;
#endif
@@ -489,8 +489,10 @@ void *dlsym(void *handle, const char *sy
#include <net/if.h>
#include <netinet/tcp.h>
#include <sys/ioctl.h>
-
+
+#if defined (P_MACOSX) && (P_MACOSX < 800)
typedef int socklen_t;
+#endif
#define HAS_IFREQ
|