1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 19:50:24 +02:00

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.
This commit is contained in:
Ludovic Courtès 2009-05-11 22:13:29 +02:00
parent 1bcf799392
commit 13ff47408f

View file

@ -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