Skip to content

Commit

Permalink
graphics/dia: fix build on riscv64
Browse files Browse the repository at this point in the history
fpsetmask() is not available on riscv64.
  • Loading branch information
pkubaj committed Jun 21, 2021
1 parent 8c56c5b commit 80937d1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion graphics/dia/files/patch-app_main.c
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
--- app/main.c.orig 2014-08-24 15:44:07 UTC
+++ app/main.c
@@ -17,12 +17,16 @@
@@ -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);

Expand Down

0 comments on commit 80937d1

Please sign in to comment.