summaryrefslogtreecommitdiff
path: root/Python/dynload_next.c
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2012-11-10 21:08:35 -0800
committerGregory P. Smith <greg@krypto.org>2012-11-10 21:08:35 -0800
commitf6128db16b5187864ee8da2078d87bd52539fcad (patch)
treeaf42c874e1018ca9364a6db7e71519534d50d142 /Python/dynload_next.c
parenta4eb9cd2ed70bb68d5ec8adb15a3d2b9b7ed7800 (diff)
parente289369efdb4e18f4a82ada19773bda9bd5b1781 (diff)
downloadcpython-f6128db16b5187864ee8da2078d87bd52539fcad.tar.gz
null merge
Diffstat (limited to 'Python/dynload_next.c')
-rw-r--r--Python/dynload_next.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/Python/dynload_next.c b/Python/dynload_next.c
index cabf9b9663..85c95b41bb 100644
--- a/Python/dynload_next.c
+++ b/Python/dynload_next.c
@@ -8,11 +8,7 @@
#include <mach-o/dyld.h>
-const struct filedescr _PyImport_DynLoadFiletab[] = {
- {".so", "rb", C_EXTENSION},
- {"module.so", "rb", C_EXTENSION},
- {0, 0}
-};
+const char *_PyImport_DynLoadFiletab[] = {".so", NULL};
/*
** Python modules are Mach-O MH_BUNDLE files. The best way to load these
@@ -31,8 +27,8 @@ const struct filedescr _PyImport_DynLoadFiletab[] = {
#define LINKOPTIONS NSLINKMODULE_OPTION_BINDNOW| \
NSLINKMODULE_OPTION_RETURN_ON_ERROR|NSLINKMODULE_OPTION_PRIVATE
#endif
-dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname,
- const char *pathname, FILE *fp)
+dl_funcptr _PyImport_GetDynLoadFunc(const char *shortname,
+ const char *pathname, FILE *fp)
{
dl_funcptr p = NULL;
char funcname[258];