diff options
author | Ludovic Courtès <ludo@gnu.org> | 2009-05-11 22:13:29 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2009-05-21 00:12:43 +0200 |
commit | 13ff47408fcda1fb57df97102bc0fe7730f37a9e (patch) | |
tree | d0392aa8679a00c3c474570bcfb5f1309f0c552e | |
parent | 1bcf79939201609e1cee667dd9bcd8c3c519385d (diff) | |
download | guile-13ff47408fcda1fb57df97102bc0fe7730f37a9e.tar.gz |
Fix compilation of `test-round.c' on BSD.
* test-suite/standalone/test-round.c (HAVE_MACHINE_FPU_H): Include
<sys/types.h> when available. This fixes compilation on NetBSD.
Reported by Greg Toxel.
-rw-r--r-- | test-suite/standalone/test-round.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test-suite/standalone/test-round.c b/test-suite/standalone/test-round.c index f9b40773b..1340fffa7 100644 --- a/test-suite/standalone/test-round.c +++ b/test-suite/standalone/test-round.c @@ -26,7 +26,11 @@ #if HAVE_FENV_H #include <fenv.h> #elif defined HAVE_MACHINE_FPU_H -/* On Tru64 5.1b, the declaration of fesetround(3) is here. */ +/* On Tru64 5.1b, the declaration of fesetround(3) is in <machine/fpu.h>. + On NetBSD, this header has to be included along with <sys/types.h>. */ +# ifdef HAVE_SYS_TYPES_H +# include <sys/types.h> +# endif # include <machine/fpu.h> #endif |