summaryrefslogtreecommitdiff
path: root/graphics/enblend-enfuse/patches/patch-ab
blob: a9a9f574279c70956251d4d7cfb3aec5842ae188 (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.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