summaryrefslogtreecommitdiff
path: root/devel/pwlib/patches/patch-az
blob: 00682c59c2160d547e0e743804aba6d1fd63e931 (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
$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