From e8bcc0697ba281c037c9608cd5d37d741e00a285 Mon Sep 17 00:00:00 2001 From: Juan Jose Garcia Ripoll Date: Thu, 23 Jul 2009 18:05:36 +0200 Subject: [PATCH] Solaris needs C99 to compile with XOpen specifications --- src/aclocal.m4 | 1 + src/configure | 1 + 2 files changed, 2 insertions(+) diff --git a/src/aclocal.m4 b/src/aclocal.m4 index 2c092f410..75727f554 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -283,6 +283,7 @@ case "${host_os}" in LDRPATH='-Wl,-R,~A' TCPLIBS='-lsocket -lnsl -lintl' clibs='-ldl' + CFLAGS="${CFLAGS} -std=gnu99" ;; cygwin*) thehost='cygwin' diff --git a/src/configure b/src/configure index b61c1d0e0..ed642b33a 100755 --- a/src/configure +++ b/src/configure @@ -4450,6 +4450,7 @@ case "${host_os}" in LDRPATH='-Wl,-R,~A' TCPLIBS='-lsocket -lnsl -lintl' clibs='-ldl' + CFLAGS="${CFLAGS} -std=gnu99" ;; cygwin*) thehost='cygwin'