summaryrefslogtreecommitdiff
path: root/lang/python15/files/patch-ab
blob: 3a666b7770778adbec4e8e1fbd44fca357b94d9e (plain) (blame)
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
--- Python/importdl.c.orig	Fri Oct 25 16:43:24 1996
+++ Python/importdl.c	Sat May  3 11:55:20 1997
@@ -76,13 +76,18 @@
 #define LONG_EXT "module.sl"
 #endif 
 
-#if defined(__NetBSD__) || defined(__FreeBSD__)
+#if defined(__NetBSD__)
 #define DYNAMIC_LINK
 #define USE_SHLIB
 
 #define dlerror() "error in dynamic linking"
 #endif
 
+#if defined(__FreeBSD__)
+#define DYNAMIC_LINK
+#define USE_SHLIB
+#endif
+
 #ifdef MS_WINDOWS /* i.e. MS_WIN32 or MS_WIN16 */
 #define DYNAMIC_LINK
 #include <windows.h>
@@ -150,7 +155,7 @@
 #ifdef USE_SHLIB
 #include <sys/types.h>
 #include <sys/stat.h>
-#if defined(__NetBSD__) || defined(__FreeBSD__)
+#if defined(__NetBSD__)
 #include <nlist.h>
 #include <link.h>
 #else