diff options
Diffstat (limited to 'mkspecs/unsupported')
-rw-r--r-- | mkspecs/unsupported/integrity-ghs/qplatformdefs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mkspecs/unsupported/integrity-ghs/qplatformdefs.h b/mkspecs/unsupported/integrity-ghs/qplatformdefs.h index 87459d874e..4df7dea1d7 100644 --- a/mkspecs/unsupported/integrity-ghs/qplatformdefs.h +++ b/mkspecs/unsupported/integrity-ghs/qplatformdefs.h @@ -170,6 +170,10 @@ #define QT_VSNPRINTF ::vsnprintf #endif +// INTEGRITY doesn't enable the declaration in _POSIX_SOURCE mode, +// because strdup() is not part of strict Posix; declare it here +extern "C" char *strdup(const char *src); + #ifndef MAXNAMLEN # define MAXNAMLEN NAME_MAX #endif |