Ticket #22517: patch-Modules-posixmodule.c.diff
File patch-Modules-posixmodule.c.diff, 571 bytes (added by eborisch@…, 15 years ago) |
---|
-
Modules/posixmodule.c
old new 339 339 #endif 340 340 341 341 /* Return a dictionary corresponding to the POSIX environment table */ 342 #ifdef WITH_NEXT_FRAMEWORK342 #ifdef __APPLE__ 343 343 /* On Darwin/MacOSX a shared library or framework has no access to 344 344 ** environ directly, we must obtain it with _NSGetEnviron(). 345 345 */ … … 357 357 d = PyDict_New(); 358 358 if (d == NULL) 359 359 return NULL; 360 #ifdef WITH_NEXT_FRAMEWORK360 #ifdef __APPLE__ 361 361 if (environ == NULL) 362 362 environ = *_NSGetEnviron(); 363 363 #endif