diff --git a/dtool/src/dtoolutil/executionEnvironment.cxx b/dtool/src/dtoolutil/executionEnvironment.cxx index 273fed41ed..40af7df311 100644 --- a/dtool/src/dtoolutil/executionEnvironment.cxx +++ b/dtool/src/dtoolutil/executionEnvironment.cxx @@ -29,7 +29,9 @@ #ifdef __APPLE__ // This is for _NSGetExecutablePath() and _NSGetEnviron(). #include -//#include +#ifndef BUILDING_IPHONE +#include // For some reason, not in the IPhone SDK. +#endif #define environ (*_NSGetEnviron()) #endif