summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Niklas Hasse <jhasse@bixense.com>2019-08-06 13:47:19 +0200
committerGitHub <noreply@github.com>2019-08-06 13:47:19 +0200
commitc41a107bb7fef7e89baba03dc5f13cf914f5bf07 (patch)
treef8433dc99cfb38fd84a0b66d4d18072efffed85c
parent0cb85516b43bc312363fcb959ce8816a6db6719e (diff)
parent5521085b2daf1f55d4256153166d790978b6bb34 (diff)
downloadninja-c41a107bb7fef7e89baba03dc5f13cf914f5bf07.tar.gz
Merge pull request #1622 from goshhhy/aix
fix building ninja_test on AIX 6.1
-rw-r--r--src/test.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test.cc b/src/test.cc
index a9816bc..8ba2297 100644
--- a/src/test.cc
+++ b/src/test.cc
@@ -33,6 +33,15 @@
#include "manifest_parser.h"
#include "util.h"
+#ifdef _AIX
+extern "C" {
+ // GCC "helpfully" strips the definition of mkdtemp out on AIX.
+ // The function is still present, so if we define it ourselves
+ // it will work perfectly fine.
+ extern char* mkdtemp(char* name_template);
+}
+#endif
+
namespace {
#ifdef _WIN32