aboutsummaryrefslogtreecommitdiffstats
path: root/cad
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2019-06-13 22:51:44 +0800
committerbapt <bapt@FreeBSD.org>2019-06-13 22:51:44 +0800
commit33a6e53bd30f7ea7ca164ba04347a0deb6cc337d (patch)
tree82504ccc62134073854fb459f3edcf618921fb6f /cad
parentc26a4090955d2cee425b36e177db108a9e4b92fc (diff)
downloadfreebsd-ports-gnome-33a6e53bd30f7ea7ca164ba04347a0deb6cc337d.tar.gz
freebsd-ports-gnome-33a6e53bd30f7ea7ca164ba04347a0deb6cc337d.tar.zst
freebsd-ports-gnome-33a6e53bd30f7ea7ca164ba04347a0deb6cc337d.zip
Incorporate a patch to stop using sys/dir.h which is deprecated in POSIX since
1997 PR: 21519 Submitted by: ota@j.email.ne.jp Differential Revision: https://reviews.freebsd.org/D20621
Diffstat (limited to 'cad')
-rw-r--r--cad/calculix/files/patch-dir.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/cad/calculix/files/patch-dir.h b/cad/calculix/files/patch-dir.h
new file mode 100644
index 000000000000..23b34714a038
--- /dev/null
+++ b/cad/calculix/files/patch-dir.h
@@ -0,0 +1,40 @@
+--- cgx_2.15/src/readFoam.c.orig 2018-12-15 10:23:59.490288980 -0500
++++ cgx_2.15/src/readFoam.c 2019-06-11 17:49:23.469502000 -0400
+@@ -4,7 +4,7 @@
+
+
+ #include <cgx.h>
+-#include <sys/dir.h>
++#include <dirent.h>
+
+ #define kappa 1.4
+
+@@ -289,7 +289,7 @@
+ int eface[8], sum_dir, ncomps;
+ FILE *handle;
+ DIR *dirp;
+- struct direct *dp;
++ struct dirent *dp;
+ Rsort *rsort=NULL;
+ Ds ds;
+
+--- cgx_2.15/src/setFunktions.c.orig 2019-06-11 17:50:19.651248000 -0400
++++ cgx_2.15/src/setFunktions.c 2019-06-11 17:50:41.211341000 -0400
+@@ -30,7 +30,7 @@
+ */
+
+ #include <cgx.h>
+-#include <sys/dir.h>
++#include <dirent.h>
+ #include <xwd.h>
+
+
+@@ -11859,7 +11859,7 @@
+ int pics;
+ int pnts[3];
+ DIR *dirp;
+- struct direct *dp;
++ struct dirent *dp;
+ static int ifFlag=1, whileFlag=1, returnFlag=1;
+ Scale scaleSet[1];
+