mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 11:40:18 +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:
parent
1bcf799392
commit
13ff47408f
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue