summaryrefslogtreecommitdiff
path: root/graphics/xpaint/files/patch-fileBrowser.c
diff options
context:
space:
mode:
authorRene Ladan <rene@FreeBSD.org>2019-06-30 09:05:33 +0000
committerRene Ladan <rene@FreeBSD.org>2019-06-30 09:05:33 +0000
commit50921a9a69c65b5bc2ba21b9dc4184395191cdc1 (patch)
tree712790154226e4468d435534f1282b4bc4b86d71 /graphics/xpaint/files/patch-fileBrowser.c
parent- Update WWW (diff)
graphics/xpaint: include dirent.h instead of sys/dir.h which is scheduled
for removal. PR: 238622 Submitted by: rene Approved by: maintainer timeout (johans, 2 weeeks)
Notes
Notes: svn path=/head/; revision=505411
Diffstat (limited to 'graphics/xpaint/files/patch-fileBrowser.c')
-rw-r--r--graphics/xpaint/files/patch-fileBrowser.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/graphics/xpaint/files/patch-fileBrowser.c b/graphics/xpaint/files/patch-fileBrowser.c
new file mode 100644
index 000000000000..b07b58ccb4e0
--- /dev/null
+++ b/graphics/xpaint/files/patch-fileBrowser.c
@@ -0,0 +1,20 @@
+--- fileBrowser.c.orig 2014-05-08 13:50:48 UTC
++++ fileBrowser.c
+@@ -47,7 +47,7 @@ extern Xaw3dXftData *xaw3dxft_data;
+ #include <stdio.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+-#if defined(SYSV) || defined(SVR4) || defined(__CYGWIN__) || defined(__VMS )
++#if defined(SYSV) || defined(SVR4) || defined(__CYGWIN__) || defined(__VMS ) || defined(BSD)
+ #include <dirent.h>
+ #else
+ #include <sys/dir.h>
+@@ -562,7 +562,7 @@ static void
+ setCWD(arg_t * arg, char *dir)
+ {
+ DIR *dirp;
+-#if defined(SYSV) || defined(SVR4) || defined(__alpha) || defined(__CYGWIN__)
++#if defined(SYSV) || defined(SVR4) || defined(__alpha) || defined(__CYGWIN__) || defined(BSD)
+ struct dirent *e;
+ #else
+ struct direct *e;