freebsd-ports/graphics/sodipodi/files/patch-src_main.c
Joe Marcus Clarke 61c89d37e0 Attempt to fix the build on ia64.
Reported by:	pointyhat via kris
2004-11-25 20:27:13 +00:00

21 lines
465 B
C

--- src/main.c.orig Sun Feb 8 08:42:01 2004
+++ src/main.c Thu Nov 25 15:25:34 2004
@@ -27,7 +27,8 @@
#endif
#ifdef __FreeBSD__
-#include <floatingpoint.h>
+#include <sys/types.h>
+#include <ieeefp.h>
#endif
#include <string.h>
#include <signal.h>
@@ -216,7 +217,7 @@
result = sp_main_console (argc, argv);
}
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) && defined(__i386__)
fpresetsticky(FP_X_DZ|FP_X_INV);
fpsetmask(FP_X_DZ|FP_X_INV);
#endif