summaryrefslogtreecommitdiff
path: root/graphics/enblend-enfuse/patches/patch-ab
blob: 9d8ed7dd7a3f85d1d4e13e128e54cd8d5846cacd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$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