]> granicus.if.org Git - python/commitdiff
Move dlfcn.h block out of NetBSD block, assuming that NetBSD before
authorMartin v. Löwis <martin@v.loewis.de>
Thu, 18 Oct 2001 21:24:04 +0000 (21:24 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Thu, 18 Oct 2001 21:24:04 +0000 (21:24 +0000)
199712 didn't have dlfcn.h, or that it wouldn't conflict with the other
stuff defined.

Python/dynload_shlib.c

index 548863a91708afc758788d119ea98bf8cc1d58f2..569a6f52ce837df975174280199d5df4049d45cc 100644 (file)
@@ -6,18 +6,19 @@
 
 #include <sys/types.h>
 #include <sys/stat.h>
+
 #if defined(__NetBSD__)
 #include <sys/param.h>
 #if (NetBSD < 199712)
 #include <nlist.h>
 #include <link.h>
 #define dlerror() "error in dynamic linking"
-#else
+#endif
+#endif /* NetBSD */
+
 #ifdef HAVE_DLFCN_H
 #include <dlfcn.h>
 #endif
-#endif
-#endif /* NetBSD */
 
 #if (defined(__OpenBSD__) || defined(__NetBSD__)) && !defined(__ELF__)
 #define LEAD_UNDERSCORE "_"