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
This commit is contained in:
Baptiste Daroussin 2019-06-13 14:51:44 +00:00
parent f15ec9b7a2
commit a7402e6954
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=504095

View File

@ -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];