Mercurial > cpython-lru_cache-weakref
diff Python/importdl.c @ 3420:013bbe4ef943 legacy-trunk
__FreeBSD__ shared libraries
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Sun, 25 Feb 1996 05:02:29 +0000 |
| parents | 49f7a4a1f0f6 |
| children | 16a5f6048461 |
line wrap: on
line diff
--- a/Python/importdl.c Sun Feb 25 04:50:33 1996 +0000 +++ b/Python/importdl.c Sun Feb 25 05:02:29 1996 +0000 @@ -47,6 +47,7 @@ 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 @@ #define LONG_EXT "module.sl" #endif -#ifdef __NetBSD__ +#if defined(__NetBSD__) || defined(__FreeBSD__) #define DYNAMIC_LINK #define USE_SHLIB @@ -133,7 +134,7 @@ #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 @@ 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"
