android: we have mkdtemp.
authorArvid Picciani <aep@exys.org>
Sun, 9 Sep 2012 19:36:55 +0000 (21:36 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 10 Sep 2012 09:25:01 +0000 (11:25 +0200)
they just forgot to declare it.
see: bionic ad1ff2fb268034074488f0b4b30b5311008b8617

Change-Id: Ide0c0edaa1b5fd17e58ffce1e3d49e320d80e57a
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Reviewed-by: Arvid Picciani <aep@exys.org>
src/corelib/io/qtemporarydir.cpp

index fde1944..6ee8762 100644 (file)
@@ -52,7 +52,7 @@
 #endif
 
 #include <stdlib.h> // mkdtemp
-#if defined(Q_OS_QNX) || defined(Q_OS_WIN) || defined(Q_OS_LINUX_ANDROID)
+#if defined(Q_OS_QNX) || defined(Q_OS_WIN)
 #include <private/qfilesystemengine_p.h>
 #endif
 
@@ -94,7 +94,7 @@ static QString defaultTemplateName()
     return QDir::tempPath() + QLatin1Char('/') + baseName + QLatin1String("-XXXXXX");
 }
 
-#if defined(Q_OS_QNX ) || defined(Q_OS_WIN) || defined(Q_OS_LINUX_ANDROID)
+#if defined(Q_OS_QNX ) || defined(Q_OS_WIN)
 static char *mkdtemp(char *templateName)
 {
     static const char letters[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
@@ -138,6 +138,8 @@ static char *mkdtemp(char *templateName)
     }
     return 0;
 }
+#elif defined(Q_OS_LINUX_ANDROID)
+extern char *mkdtemp(char *);
 #endif
 
 void QTemporaryDirPrivate::create(const QString &templateName)