aboutsummaryrefslogtreecommitdiff
path: root/x11-fm/fsv/files/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'x11-fm/fsv/files/patch-aa')
-rw-r--r--x11-fm/fsv/files/patch-aa34
1 files changed, 34 insertions, 0 deletions
diff --git a/x11-fm/fsv/files/patch-aa b/x11-fm/fsv/files/patch-aa
new file mode 100644
index 000000000000..16290b139175
--- /dev/null
+++ b/x11-fm/fsv/files/patch-aa
@@ -0,0 +1,34 @@
+--- src/fsv.c.orig Sun Feb 13 02:03:57 2000
++++ src/fsv.c Sun Feb 13 02:06:19 2000
+@@ -26,6 +26,9 @@
+ #include "common.h"
+ #include "fsv.h"
+
++#ifdef __FreeBSD__
++#include <floatingpoint.h>
++#endif
+ #include <gtk/gtk.h>
+ #include <gtkgl/gdkgl.h>
+ #include "getopt.h"
+@@ -215,6 +218,10 @@
+ int opt_id;
+ char *root_dir;
+
++#ifdef __FreeBSD__
++ fpsetmask(fpgetmask() & ~(FP_X_DZ|FP_X_INV));
++#endif
++
+ /* Initialize global variables */
+ globals.fstree = NULL;
+ globals.history = NULL;
+@@ -311,6 +318,10 @@
+
+ gtk_main( );
+
++#ifdef __FreeBSD__
++ fpresetsticky(FP_X_DZ|FP_X_INV);
++ fpsetmask(FP_X_DZ|FP_X_INV);
++#endif
+ return 0;
+ }
+