Fixes for building ECL with gcc 3.4.3 in Solaris 10

This commit is contained in:
Juan Jose Garcia Ripoll 2009-08-31 17:21:20 +02:00
parent e434ebc3aa
commit c66068c408
4 changed files with 14 additions and 3 deletions

4
src/aclocal.m4 vendored
View file

@ -283,7 +283,9 @@ case "${host_os}" in
ECL_LDRPATH='-Wl,-R,~A'
TCPLIBS='-lsocket -lnsl -lintl'
clibs='-ldl'
CFLAGS="${CFLAGS} -std=gnu99"
# We should use C99 and _XOPEN_SOURCE=600, but Solaris 10
# ships with GCC 3.4.3 which does not support C99
# CFLAGS="${CFLAGS} -std=gnu99"
enable_slow_config=yes
;;
cygwin*)

View file

@ -15,7 +15,9 @@
See file '../Copyright' for full details.
*/
#ifndef __sun__ /* See unixint.d for the reason of this */
#define _XOPEN_SOURCE 600 /* For pthread mutex attributes */
#endif
#include <ecl/ecl.h>
#include <ecl/internal.h>
#include <ecl/ecl-inl.h>

View file

@ -15,7 +15,12 @@
See file '../Copyright' for full details.
*/
#define _XOPEN_SOURCE 600 /* For SA_SIGINFO in Solaris */
#ifdef __sun__
/* For SA_SIGINFO in Solaris. We could have used _XOPEN_SOURCE=600, but
* this requires C99 and the default GCC for Solaris (3.4.3) does not
* support this C standard. */
#define __EXTENSIONS__
#endif
#include <errno.h>
#include <string.h>
#include <stdio.h>

4
src/configure vendored
View file

@ -4432,7 +4432,9 @@ case "${host_os}" in
ECL_LDRPATH='-Wl,-R,~A'
TCPLIBS='-lsocket -lnsl -lintl'
clibs='-ldl'
CFLAGS="${CFLAGS} -std=gnu99"
# We should use C99 and _XOPEN_SOURCE=600, but Solaris 10
# ships with GCC 3.4.3 which does not support C99
# CFLAGS="${CFLAGS} -std=gnu99"
enable_slow_config=yes
;;
cygwin*)