pkgsrc/devel/pwlib/patches/patch-as
yyamano e2e92555e7 Make this build on Darwin. The changes are taken from pwlib repository
pmachdep.h rev. 1.69
pssl.cxx rev. 1.42
maccoreaudio.cxx rev. 1.15
udll.cxx ewv. 1.18
2007-03-14 17:12:47 +00:00

34 lines
938 B
Text

$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