From 5521085b2daf1f55d4256153166d790978b6bb34 Mon Sep 17 00:00:00 2001 From: ky0ko Date: Mon, 5 Aug 2019 14:55:23 -0700 Subject: fix building ninja_test on AIX 6.1 --- src/test.cc | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- cgit v0.12