This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
libf2c on solaris2.5.1
- To: gcc-patches at gcc dot gnu dot org, Toon Moene <toon at moene dot indiv dot nluug dot nl>
- Subject: libf2c on solaris2.5.1
- From: Richard Earnshaw <rearnsha at arm dot com>
- Date: Fri, 21 Sep 2001 17:01:05 +0100
- cc: Richard dot Earnshaw at arm dot com
- Organization: ARM Ltd.
- Reply-To: Richard dot Earnshaw at arm dot com
If _POSIX_SOURCE is defined Solaris 2.5.1 requires __EXTENSIONS__ to be
defined in order for struct timeval to be defined.
Is there any reason why the following should not be added:
* libI77/configure.in (__EXTENSIONS__): Define.
* libI77/config.h.in, libI77/conifgure: regenerate.
* libU77/configure.in (__EXTENSIONS__): Likewise.
Index: libI77/configure.in
===================================================================
RCS file: /cvs/gcc/gcc/libf2c/libI77/configure.in,v
retrieving revision 1.10
diff -p -r1.10 configure.in
*** configure.in 2001/07/18 20:50:54 1.10
--- configure.in 2001/09/21 15:56:39
*************** AC_CONFIG_HEADER(config.h)
*** 28,33 ****
--- 28,35 ----
AC_DEFINE(_XOPEN_SOURCE, 500L, [Get Single Unix Specification semantics])
# The following is needed by irix6.2 so that struct timeval is declared.
AC_DEFINE(_XOPEN_SOURCE_EXTENDED, 1, [Get Single Unix Specification semantics])
+ # The following is needed by Solaris2.5.1 so that struct timeval is declared.
+ AC_DEFINE(__EXTENSIONS__, 1, [Solaris extensions])
AC_DEFINE(_FILE_OFFSET_BITS, 64, [Get 64-bit file size support])
dnl Checks for programs.
Index: libU77/configure.in
===================================================================
RCS file: /cvs/gcc/gcc/libf2c/libU77/configure.in,v
retrieving revision 1.11
diff -p -r1.11 configure.in
*** configure.in 2001/07/18 15:16:10 1.11
--- configure.in 2001/09/21 15:56:39
*************** AC_CONFIG_HEADER(config.h:config.hin)
*** 28,33 ****
--- 28,35 ----
AC_DEFINE(_XOPEN_SOURCE, 500L, [Get Single Unix Specification semantics])
# The following is needed by irix6.2 so that struct timeval is declared.
AC_DEFINE(_XOPEN_SOURCE_EXTENDED, 1, [Get Single Unix Specification semantics])
+ # The following is needed by Solaris2.5.1 so that struct timeval is declared.
+ AC_DEFINE(__EXTENSIONS__, 1, [Solaris extensions])
AC_DEFINE(_FILE_OFFSET_BITS, 64, [Get 64-bit file size support])
dnl Checks for programs.