git: 80937d19133c - main - graphics/dia: fix build on riscv64
Piotr Kubaj
pkubaj at FreeBSD.org
Mon Jun 21 08:10:44 UTC 2021
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=80937d19133cf130db79ebbf28fb0398bd6ddd05
commit 80937d19133cf130db79ebbf28fb0398bd6ddd05
Author: Piotr Kubaj <pkubaj at FreeBSD.org>
AuthorDate: 2021-06-21 08:10:37 +0000
Commit: Piotr Kubaj <pkubaj at FreeBSD.org>
CommitDate: 2021-06-21 08:10:37 +0000
graphics/dia: fix build on riscv64
fpsetmask() is not available on riscv64.
---
graphics/dia/files/patch-app_main.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/graphics/dia/files/patch-app_main.c b/graphics/dia/files/patch-app_main.c
index d105c04a6f64..cf626797cb6f 100644
--- a/graphics/dia/files/patch-app_main.c
+++ b/graphics/dia/files/patch-app_main.c
@@ -1,10 +1,12 @@
--- 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"
@@ -12,7 +14,9 @@
int main(int argc, char *argv[])
{
++#if defined(FP_X_INV) && defined(FP_X_DZ)
+ fpsetmask(0);
++#endif
+
app_init(argc, argv);
More information about the dev-commits-ports-all
mailing list