fix build on mac
environ needs to be declared properly (cherry picked from commit aae6ef391d2ee2fa5b91c834ea65f14fd61e5af6)
This commit is contained in:
parent
61b85df09b
commit
4d8cf47178
@ -467,6 +467,18 @@ bool QProcessPrivate::createChannel(Channel &channel)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QT_BEGIN_INCLUDE_NAMESPACE
|
||||||
|
#if defined(Q_OS_MAC) && !defined(QT_NO_CORESERVICES)
|
||||||
|
# include <crt_externs.h>
|
||||||
|
# define environ (*_NSGetEnviron())
|
||||||
|
#elif defined(Q_OS_SYMBIAN) || (defined(Q_OS_MAC) && defined(QT_NO_CORESERVICES))
|
||||||
|
static char *qt_empty_environ[] = { 0 };
|
||||||
|
#define environ qt_empty_environ
|
||||||
|
#else
|
||||||
|
extern char **environ;
|
||||||
|
#endif
|
||||||
|
QT_END_INCLUDE_NAMESPACE
|
||||||
|
|
||||||
QProcessEnvironment QProcessEnvironment::systemEnvironment()
|
QProcessEnvironment QProcessEnvironment::systemEnvironment()
|
||||||
{
|
{
|
||||||
QProcessEnvironment env;
|
QProcessEnvironment env;
|
||||||
|
Loading…
Reference in New Issue
Block a user