1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-14 07:43:06 +00:00
freebsd-ports/x11-fm/fsv/files/patch-aa
Kirill Ponomarev 9f50b391f7 - Fix build on non-i386 arch
- Utilize USE_GETOPT_LONG

PR:		ports/64220
Submitted by:	Ports Fury
2004-03-13 19:34:11 +00:00

37 lines
670 B
Plaintext

--- src/fsv.c.orig Wed Jan 26 20:49:55 2000
+++ src/fsv.c Sun Aug 6 19:14:34 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,12 @@
gtk_main( );
+#ifdef __FreeBSD__
+#ifdef __i386__
+ fpresetsticky(FP_X_DZ|FP_X_INV);
+#endif
+ fpsetmask(FP_X_DZ|FP_X_INV);
+#endif
return 0;
}