summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorJon Petrissans <jon.petrissans@protonmail.com>2021-02-24 21:13:19 +0200
committerGitHub <noreply@github.com>2021-02-24 20:13:19 +0100
commit3ba967d9e43ddabb15722418bcce9488aec458cb (patch)
treedf3ddb0fcff3c68f32bf20486e76d3e355a1d9f1 /cmake
parent0492eb74f1c58af76df3a7e25c407de9f546de89 (diff)
downloadccache-3ba967d9e43ddabb15722418bcce9488aec458cb.tar.gz
Support building ccache with xlclang++ on AIX 7.2 (#805)
- Update of config.h.in to build with xlclang++ on AIX 7.2 - Little fixes in code chunks never built on usual platforms
Diffstat (limited to 'cmake')
-rw-r--r--cmake/config.h.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/cmake/config.h.in b/cmake/config.h.in
index b4e412f7..d10e1641 100644
--- a/cmake/config.h.in
+++ b/cmake/config.h.in
@@ -34,6 +34,9 @@
# define _XOPEN_SOURCE 500
#elif defined(__FreeBSD__)
# define _XOPEN_SOURCE 700
+#elif defined(__ibmxl__) && defined(__clang__) // Compiler xlclang
+# define _XOPEN_SOURCE 600
+# define _ALL_SOURCE 1
#elif !defined(__SunOS_5_11) && !defined(__APPLE__)
# define _XOPEN_SOURCE
#endif
@@ -165,3 +168,9 @@
// Define if you have the "PTHREAD_MUTEX_ROBUST" constant.
#cmakedefine HAVE_PTHREAD_MUTEX_ROBUST
+
+#if defined(__ibmxl__) && defined(__clang__) // Compiler xlclang
+# undef HAVE_VARARGS_H // varargs.h would hide macros of stdarg.h
+# undef HAVE_STRUCT_STAT_ST_CTIM
+# undef HAVE_STRUCT_STAT_ST_MTIM
+#endif