pkgsrc/devel/pwlib/patches/patch-az
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

27 lines
580 B
Text

$NetBSD: patch-az,v 1.1 2007/03/14 17:12:47 yyamano Exp $
--- src/ptlib/unix/udll.cxx.orig 2004-05-11 10:15:53.000000000 +0900
+++ src/ptlib/unix/udll.cxx
@@ -88,6 +88,7 @@
#include <ptlib.h>
#ifdef P_MACOSX
+#if P_MACOSX < 700
/*
Copyright (c) 2002 Peter O'Gorman <ogorman@users.sourceforge.net>
@@ -326,7 +327,13 @@ static void *dlsym(void *handle, const c
return value;
}
-#endif
+#else
+
+// The functionality implemented above ships directly with MacOSX 10.3 and later
+#include <dlfcn.h>
+#endif // P_MACOSX < 700
+
+#endif // P_MACOSX
#ifndef P_DYNALINK