$NetBSD: patch-ac,v 1.3 2012/12/09 00:11:42 adam Exp $ --- src/enblend.cc.orig 2012-12-08 08:23:59.000000000 +0000 +++ src/enblend.cc @@ -51,8 +51,12 @@ extern "C" char *optarg; extern "C" int optind; #ifndef _MSC_VER +#ifdef __NetBSD__ +//#include +#else #include #endif +#endif #include #include @@ -1657,6 +1661,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