diff options
Diffstat (limited to 'Mac/Tools/pythonw.c')
| -rw-r--r-- | Mac/Tools/pythonw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Mac/Tools/pythonw.c b/Mac/Tools/pythonw.c index 76734c1..30c82ac 100644 --- a/Mac/Tools/pythonw.c +++ b/Mac/Tools/pythonw.c @@ -10,6 +10,7 @@ * On OSX 10.4 (and earlier) this falls back to using exec because the * posix_spawnv functions aren't available there. */ + #pragma weak_import posix_spawnattr_init #pragma weak_import posix_spawnattr_setbinpref_np #pragma weak_import posix_spawnattr_setflags @@ -26,6 +27,7 @@ #include <err.h> #include <dlfcn.h> #include <stdlib.h> +#include <Python.h> extern char** environ; @@ -158,14 +160,12 @@ main(int argc, char **argv) { argv[0] = exec_path; #ifdef HAVE_SPAWN_H - /* We're weak-linking to posix-spawnv to ensure that * an executable build on 10.5 can work on 10.4. */ if (posix_spawn != NULL) { posix_spawnattr_t spawnattr = NULL; - setup_spawnattr(&spawnattr); posix_spawn(NULL, exec_path, NULL, &spawnattr, argv, environ); |
