diff --git a/ofstd/libsrc/ofstub.cc b/ofstd/libsrc/ofstub.cc index c1df7068e..bba147e26 100644 --- a/ofstd/libsrc/ofstub.cc +++ b/ofstd/libsrc/ofstub.cc @@ -141,6 +141,11 @@ static OFString getLastErrorString() return OFString(); } +#elif defined(__APPLE__) + +#include +#define environ (*_NSGetEnviron()) + #else /* _WIN32 */ extern char** environ; // required to exist by the Single Unix Specification