summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-02-25 05:02:29 (GMT)
committerGuido van Rossum <guido@python.org>1996-02-25 05:02:29 (GMT)
commit25e852985fc391a79fa76b6b35ea5829c0c8875e (patch)
tree9c131a30868a505867d860471ba6c280dc192038
parent1b66a4f01d221306c78c4d6cd268cf6dd0720859 (diff)
downloadcpython-25e852985fc391a79fa76b6b35ea5829c0c8875e.zip
cpython-25e852985fc391a79fa76b6b35ea5829c0c8875e.tar.gz
cpython-25e852985fc391a79fa76b6b35ea5829c0c8875e.tar.bz2
__FreeBSD__ shared libraries
-rw-r--r--Python/importdl.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/Python/importdl.c b/Python/importdl.c
index e802df1..0c1cd38 100644
--- a/Python/importdl.c
+++ b/Python/importdl.c
@@ -47,6 +47,7 @@ extern int verbose; /* Defined in pythonrun.c */
LONG_EXT -- long extension, e.g. "module.so"
hpux -- HP-UX Dynamic Linking - defined by the compiler
__NetBSD__ -- NetBSD shared libraries (not quite SVR4 compatible)
+ __FreeBSD__ -- FreeBSD shared libraries
(The other WITH_* symbols are used only once, to set the
appropriate symbols.)
@@ -67,7 +68,7 @@ typedef void (*dl_funcptr)();
#define LONG_EXT "module.sl"
#endif
-#ifdef __NetBSD__
+#if defined(__NetBSD__) || defined(__FreeBSD__)
#define DYNAMIC_LINK
#define USE_SHLIB
@@ -133,7 +134,7 @@ static void aix_loaderror(char *name);
#ifdef USE_SHLIB
#include <sys/types.h>
#include <sys/stat.h>
-#ifdef __NetBSD__
+#if defined(__NetBSD__) || defined(__FreeBSD__)
#include <nlist.h>
#include <link.h>
#else
@@ -176,7 +177,7 @@ typedef void (*dl_funcptr)();
extern char *getprogramname();
#ifndef FUNCNAME_PATTERN
-#if defined(__hp9000s300) || defined(__NetBSD__) || defined(__BORLANDC__)
+#if defined(__hp9000s300) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__BORLANDC__)
#define FUNCNAME_PATTERN "_init%.200s"
#else
#define FUNCNAME_PATTERN "init%.200s"