1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-21 08:42:23 +00:00
freebsd-ports/graphics/dia/files/patch-app_main.c
Piotr Kubaj 80937d1913 graphics/dia: fix build on riscv64
fpsetmask() is not available on riscv64.
2021-06-21 08:10:37 +00:00

24 lines
397 B
C

--- app/main.c.orig 2014-08-24 15:44:07 UTC
+++ app/main.c
@@ -17,12 +17,20 @@
*/
#include <config.h>
+#if defined(FP_X_INV) && defined(FP_X_DZ)
+#include <ieeefp.h>
+#endif
+
#include "app_procs.h"
#include "interface.h"
int main(int argc, char *argv[])
{
+#if defined(FP_X_INV) && defined(FP_X_DZ)
+ fpsetmask(0);
+#endif
+
app_init(argc, argv);
if (!app_is_interactive())