Ticket #22517: patch-Modules-posixmodule.c.diff

File patch-Modules-posixmodule.c.diff, 571 bytes (added by eborisch@…, 14 years ago)
  • Modules/posixmodule.c

    old new  
    339339#endif
    340340
    341341/* Return a dictionary corresponding to the POSIX environment table */
    342 #ifdef WITH_NEXT_FRAMEWORK
     342#ifdef __APPLE__
    343343/* On Darwin/MacOSX a shared library or framework has no access to
    344344** environ directly, we must obtain it with _NSGetEnviron().
    345345*/
     
    357357        d = PyDict_New();
    358358        if (d == NULL)
    359359                return NULL;
    360 #ifdef WITH_NEXT_FRAMEWORK
     360#ifdef __APPLE__
    361361        if (environ == NULL)
    362362                environ = *_NSGetEnviron();
    363363#endif