diff --git a/setup.py b/setup.py index 01b87ebeb66..3217033bd1e 100644 --- a/setup.py +++ b/setup.py @@ -734,7 +734,7 @@ class found(Exception): pass if sys.maxint == 0x7fffffff: # This requires sizeof(int) == sizeof(long) == sizeof(char*) dl_inc = find_file('dlfcn.h', [], inc_dirs) - if (dl_inc is not None) and (platform not in ['atheos']): + if (dl_inc is not None) and (platform not in ['atheos', 'darwin']): exts.append( Extension('dl', ['dlmodule.c']) ) # Platform-specific libraries