diff options
author | Ludovic Courtès <ludo@gnu.org> | 2009-04-23 22:51:27 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2009-05-21 00:11:22 +0200 |
commit | 66818dbb710c83730310c15088f1784d61158f04 (patch) | |
tree | 1050493e03c3faaa508eb84c0a6a1ead05a71721 | |
parent | 5f380d71c3b1080d8f0e52610fa0b5efe09232c6 (diff) | |
download | guile-66818dbb710c83730310c15088f1784d61158f04.tar.gz |
Use <machine/fpu.h> instead of <fenv.h> when needed (e.g., Tru64 5.1b).
* configure.in: Look for <machine/fpu.h>.
* test-suite/standalone/test-round.c: Use <machine/fpu.h> if available.
-rw-r--r-- | configure.in | 4 | ||||
-rw-r--r-- | test-suite/standalone/test-round.c | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/configure.in b/configure.in index f06dab8bb..07c476686 100644 --- a/configure.in +++ b/configure.in @@ -621,6 +621,8 @@ AC_SUBST([SCM_I_GSC_HAVE_STRUCT_DIRENT64]) # Reasons for testing: # complex.h - new in C99 # fenv.h - available in C99, but not older systems +# machine/fpu.h - on Tru64 5.1b, the declaration of fesetround(3) is in +# this file instead of <fenv.h> # process.h - mingw specific # langinfo.h, nl_types.h - SuS v2 # @@ -628,7 +630,7 @@ AC_CHECK_HEADERS([complex.h fenv.h io.h libc.h limits.h malloc.h memory.h proces regex.h rxposix.h rx/rxposix.h sys/dir.h sys/ioctl.h sys/select.h \ sys/time.h sys/timeb.h sys/times.h sys/stdtypes.h sys/types.h \ sys/utime.h time.h unistd.h utime.h pwd.h grp.h sys/utsname.h \ -direct.h langinfo.h nl_types.h]) +direct.h langinfo.h nl_types.h machine/fpu.h]) # "complex double" is new in C99, and "complex" is only a keyword if # <complex.h> is included diff --git a/test-suite/standalone/test-round.c b/test-suite/standalone/test-round.c index 9725491c9..f9b40773b 100644 --- a/test-suite/standalone/test-round.c +++ b/test-suite/standalone/test-round.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2004, 2006, 2008 Free Software Foundation, Inc. +/* Copyright (C) 2004, 2006, 2008, 2009 Free Software Foundation, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -25,6 +25,9 @@ #if HAVE_FENV_H #include <fenv.h> +#elif defined HAVE_MACHINE_FPU_H +/* On Tru64 5.1b, the declaration of fesetround(3) is here. */ +# include <machine/fpu.h> #endif #include <libguile.h> |