2009-05-19 04:41:38 -04:00
|
|
|
$OpenBSD: patch-src_enfuse_cc,v 1.2 2009/05/19 08:41:38 sthen Exp $
|
|
|
|
|
|
|
|
we don't have fenv.h/fesetround(), but we can set rounding behaviour
|
|
|
|
this way instead. probably a noop anyway; FP_RN is the default.
|
|
|
|
|
2009-04-19 07:14:37 -04:00
|
|
|
--- src/enfuse.cc.orig Thu Mar 13 20:34:35 2008
|
|
|
|
+++ src/enfuse.cc Fri Jul 25 00:49:41 2008
|
|
|
|
@@ -61,8 +61,14 @@ extern "C" {
|
|
|
|
extern "C" char *optarg;
|
|
|
|
extern "C" int optind;
|
|
|
|
|
|
|
|
+#ifdef __OpenBSD__
|
|
|
|
+#include <ieeefp.h>
|
|
|
|
+#define fesetround(x) fpsetround(x)
|
|
|
|
+#define FE_TONEAREST FP_RN
|
|
|
|
+#else
|
|
|
|
#ifndef _MSC_VER
|
|
|
|
#include <fenv.h>
|
|
|
|
+#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <signal.h>
|