diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2011-05-09 23:27:07 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2011-05-09 23:27:07 (GMT) |
commit | f3ddd2d995b7485cdc1c3420d254499904ff9dd9 (patch) | |
tree | 011f0e0ede59d948adc908370ff2daff171f1203 /src | |
parent | dbc9841033ba0d27048bddaa83dee24673ae2761 (diff) | |
parent | 76ac26383922b4c452592a9175e7f3b9b3fd2513 (diff) | |
download | Qt-f3ddd2d995b7485cdc1c3420d254499904ff9dd9.zip Qt-f3ddd2d995b7485cdc1c3420d254499904ff9dd9.tar.gz Qt-f3ddd2d995b7485cdc1c3420d254499904ff9dd9.tar.bz2 |
Merge branch 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into master-integration
* 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1:
ifdef out mac/no_coreservices path more cleanly
fix build on symbian
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/io/qprocess_symbian.cpp | 5 | ||||
-rw-r--r-- | src/corelib/io/qprocess_unix.cpp | 5 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/corelib/io/qprocess_symbian.cpp b/src/corelib/io/qprocess_symbian.cpp index 8a74c7b..2ce7a00 100644 --- a/src/corelib/io/qprocess_symbian.cpp +++ b/src/corelib/io/qprocess_symbian.cpp @@ -1062,6 +1062,11 @@ void QProcessPrivate::initializeProcessManager() (void) processManager(); } +QProcessEnvironment QProcessEnvironment::systemEnvironment() +{ + return QProcessEnvironment(); +} + QT_END_NAMESPACE #endif // QT_NO_PROCESS diff --git a/src/corelib/io/qprocess_unix.cpp b/src/corelib/io/qprocess_unix.cpp index a3c589f..5616d39 100644 --- a/src/corelib/io/qprocess_unix.cpp +++ b/src/corelib/io/qprocess_unix.cpp @@ -457,9 +457,6 @@ 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 @@ -468,6 +465,7 @@ QT_END_INCLUDE_NAMESPACE QProcessEnvironment QProcessEnvironment::systemEnvironment() { QProcessEnvironment env; +#if !defined(Q_OS_MAC) || !defined(QT_NO_CORESERVICES) const char *entry; for (int count = 0; (entry = environ[count]); ++count) { const char *equal = strchr(entry, '='); @@ -479,6 +477,7 @@ QProcessEnvironment QProcessEnvironment::systemEnvironment() env.d->hash.insert(QProcessEnvironmentPrivate::Key(name), QProcessEnvironmentPrivate::Value(value)); } +#endif return env; } |