From 6a2d967de07a52f0460089999349e31741b402f8 Mon Sep 17 00:00:00 2001 From: Brad King Date: Sun, 17 Sep 2017 11:06:13 -0400 Subject: 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. --- bootstrap | 4 ++++ 1 file changed, 4 insertions(+) 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 int main(int argc, char* argv[]) -- cgit v0.12