diff options
author | ky0ko <ky0ko@disroot.org> | 2019-08-05 21:55:23 (GMT) |
---|---|---|
committer | ky0ko <ky0ko@disroot.org> | 2019-08-05 21:55:23 (GMT) |
commit | 5521085b2daf1f55d4256153166d790978b6bb34 (patch) | |
tree | 6bdf9fa23a04a366b89ae6062fb3156a70f93b9b /src | |
parent | 70c8d75055b4fcb0ee6d9a41b908c554534725f6 (diff) | |
download | Ninja-5521085b2daf1f55d4256153166d790978b6bb34.zip Ninja-5521085b2daf1f55d4256153166d790978b6bb34.tar.gz Ninja-5521085b2daf1f55d4256153166d790978b6bb34.tar.bz2 |
fix building ninja_test on AIX 6.1
Diffstat (limited to 'src')
-rw-r--r-- | src/test.cc | 9 |
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 |