diff options
Diffstat (limited to 'test-suite/standalone/test-round.c')
-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 |