From 13ff47408fcda1fb57df97102bc0fe7730f37a9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Mon, 11 May 2009 22:13:29 +0200 Subject: [PATCH] Fix compilation of `test-round.c' on BSD. * test-suite/standalone/test-round.c (HAVE_MACHINE_FPU_H): Include when available. This fixes compilation on NetBSD. Reported by Greg Toxel. --- test-suite/standalone/test-round.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 #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 . + On NetBSD, this header has to be included along with . */ +# ifdef HAVE_SYS_TYPES_H +# include +# endif # include #endif