summaryrefslogtreecommitdiffstats
path: root/bootstrap
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-09-17 15:06:13 (GMT)
committerBrad King <brad.king@kitware.com>2017-09-17 15:10:18 (GMT)
commit6a2d967de07a52f0460089999349e31741b402f8 (patch)
tree0660a1159825933b9236faeca94d33dc30a37674 /bootstrap
parent420874bfaa20772525c60b20d1ee5b6ef5ed9298 (diff)
downloadCMake-6a2d967de07a52f0460089999349e31741b402f8.zip
CMake-6a2d967de07a52f0460089999349e31741b402f8.tar.gz
CMake-6a2d967de07a52f0460089999349e31741b402f8.tar.bz2
bootstrap: Require compiler mode aware of C99 on Solaris
On Solaris some system headers included in C with `-D_XOPEN_SOURCE=600` require C99 support by the compiler.
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap4
1 files changed, 4 insertions, 0 deletions
diff --git a/bootstrap b/bootstrap
index 430f53b..42a98ae 100755
--- a/bootstrap
+++ b/bootstrap
@@ -935,6 +935,10 @@ echo '
# error "The CMAKE_C_COMPILER is set to a C++ compiler"
#endif
+#if defined(__sun) && __STDC_VERSION__ < 199901L
+#error "On Solaris we need C99."
+#endif
+
#include <stdio.h>
int main(int argc, char* argv[])