2013-09-26 17:14:40 +02:00

27 lines
646 B
Plaintext

$NetBSD: patch-ab,v 1.3 2012/12/09 00:11:42 adam Exp $
--- src/enfuse.cc.orig 2012-12-08 08:23:59.000000000 +0000
+++ src/enfuse.cc
@@ -51,8 +51,12 @@ extern "C" char *optarg;
extern "C" int optind;
#ifndef _MSC_VER
+#ifdef __NetBSD__
+//#include <ieeefp.h>
+#else
#include <fenv.h>
#endif
+#endif
#include <signal.h>
#include <stdlib.h>
@@ -1663,6 +1667,8 @@ int main(int argc, char** argv)
// functions in float_cast.h will work properly.
// See changes in vigra numerictraits.hxx
_controlfp(_RC_NEAR, _MCW_RC);
+#elif defined(__NetBSD__)
+ //fpsetround(FE_TONEAREST);
#else
fesetround(FE_TONEAREST);
#endif