Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jun 2021 08:10:44 GMT
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 80937d19133c - main - graphics/dia: fix build on riscv64
Message-ID:  <202106210810.15L8AiVo058424@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=80937d19133cf130db79ebbf28fb0398bd6ddd05

commit 80937d19133cf130db79ebbf28fb0398bd6ddd05
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-06-21 08:10:37 +0000
Commit:     Piotr Kubaj <pkubaj@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);
  



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106210810.15L8AiVo058424>