aboutsummaryrefslogtreecommitdiff
path: root/cad/graywolf
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2020-03-29 06:15:40 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2020-03-29 06:15:40 +0000
commit3365879408dcc6d901cda106bb18a570d4b9c3f7 (patch)
tree59d9690681c19331d7d5e57abfd566b09116b5e8 /cad/graywolf
parent7fa7e7ccbdd210af4d6b507cc223e9bf5ccd061d (diff)
downloadports-3365879408dcc6d901cda106bb18a570d4b9c3f7.tar.gz
ports-3365879408dcc6d901cda106bb18a570d4b9c3f7.zip
cad/graywolf: Fix build on 13
sys/dir.h is replaced with dirent.h fatal error: sys/dir.h: No such file or directory 136 | #include <sys/dir.h> | ^~~~~~~~~~~
Notes
Notes: svn path=/head/; revision=529773
Diffstat (limited to 'cad/graywolf')
-rw-r--r--cad/graywolf/files/patch-src_Ylib_file.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/cad/graywolf/files/patch-src_Ylib_file.c b/cad/graywolf/files/patch-src_Ylib_file.c
new file mode 100644
index 000000000000..c2c9b4cc65e3
--- /dev/null
+++ b/cad/graywolf/files/patch-src_Ylib_file.c
@@ -0,0 +1,14 @@
+--- src/Ylib/file.c.orig 2020-03-29 06:09:00 UTC
++++ src/Ylib/file.c
+@@ -133,7 +133,11 @@ char *pathname ;
+
+ } /* end Yfile_slink */
+
++#if defined(__FreeBSD__) || defined(__DragonFly__)
++#include <dirent.h>
++#else
+ #include <sys/dir.h>
++#endif
+
+ /* check if a directory exists */
+ BOOL YdirectoryExists(pathname)