$NetBSD: patch-ab,v 1.2 2009/12/16 21:28:35 adam Exp $

--- src/enfuse.cc.orig	2009-11-13 16:58:19.000000000 +0100
+++ src/enfuse.cc
@@ -54,8 +54,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>
@@ -1341,6 +1345,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
