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.
This commit is contained in:
Brad King 2017-09-17 11:06:13 -04:00
parent 420874bfaa
commit 6a2d967de0

View File

@ -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[])