summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-09-17 11:06:13 -0400
committerBrad King <brad.king@kitware.com>2017-09-17 11:10:18 -0400
commit6a2d967de07a52f0460089999349e31741b402f8 (patch)
tree0660a1159825933b9236faeca94d33dc30a37674 /bootstrap
parent420874bfaa20772525c60b20d1ee5b6ef5ed9298 (diff)
downloadcmake-6a2d967de07a52f0460089999349e31741b402f8.tar.gz
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 430f53ba51..42a98ae403 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[])