Date: Thu, 13 Jun 2019 14:51:45 +0000 (UTC) From: Baptiste Daroussin <bapt@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r504095 - head/cad/calculix/files Message-ID: <201906131451.x5DEpjv5037995@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bapt Date: Thu Jun 13 14:51:44 2019 New Revision: 504095 URL: https://svnweb.freebsd.org/changeset/ports/504095 Log: 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 Added: head/cad/calculix/files/patch-dir.h (contents, props changed) Added: head/cad/calculix/files/patch-dir.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/cad/calculix/files/patch-dir.h Thu Jun 13 14:51:44 2019 (r504095) @@ -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]; +
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201906131451.x5DEpjv5037995>