Jason Stover <[EMAIL PROTECTED]> writes: > On Thu, May 18, 2006 at 10:32:17AM -0700, Ben Pfaff wrote: >> Jason Stover <[EMAIL PROTECTED]> writes: >> >> > None of these seem to be defined on NetBSD. I couldn't see any of them >> > in /usr/include, and adding an assert(0) in the #if and #elif >> > statements above didn't cause a failure. >> >> Does NetBSD have fpsetmask() declared in ieeefp.h? That seems to >> be another alternative.
> fpgetmask, fpgetround, fpgetsticky, fpsetmask, fpsetround, fpsetsticky > > Do you mean to put this into fp_init() in main.c with on #if? Another NetBSD item that slipped through the cracks. Here's a patch that does just that. Works for you? Index: configure.ac =================================================================== RCS file: /cvsroot/pspp/pspp/configure.ac,v retrieving revision 1.54 diff -u -p -r1.54 configure.ac --- configure.ac 16 Feb 2007 19:24:25 -0000 1.54 +++ configure.ac 25 Feb 2007 05:25:33 -0000 @@ -80,7 +81,7 @@ AC_DEFINE(FPREP_IEEE754, 1, AC_C_BIGENDIAN AC_FUNC_VPRINTF -AC_CHECK_FUNCS([__setfpucw execl fork isinf isnan finite getpid feholdexcept popen round trunc]) +AC_CHECK_FUNCS([__setfpucw execl fork isinf isnan finite getpid feholdexcept fpsetmask popen round trunc]) AC_PROG_LN_S Index: src/ui/terminal/main.c =================================================================== RCS file: /cvsroot/pspp/pspp/src/ui/terminal/main.c,v retrieving revision 1.30 diff -u -p -r1.30 main.c --- src/ui/terminal/main.c 24 Jan 2007 08:30:22 -0000 1.30 +++ src/ui/terminal/main.c 25 Feb 2007 05:25:34 -0000 @@ -58,6 +58,10 @@ #include <fenv.h> #endif +#if HAVE_IEEEFP_H +#include <ieeefp.h> +#endif + #include "gettext.h" #define _(msgid) gettext (msgid) @@ -158,6 +162,8 @@ fpu_init (void) feholdexcept (&foo); #elif HAVE___SETFPUCW && defined(_FPU_IEEE) __setfpucw (_FPU_IEEE); +#elif HAVE_FPSETMASK + fpsetmask (0); #endif } -- Ben Pfaff [EMAIL PROTECTED] http://benpfaff.org _______________________________________________ pspp-dev mailing list [email protected] http://lists.gnu.org/mailman/listinfo/pspp-dev
