mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-30 10:38:37 +00:00
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> | ^~~~~~~~~~~
This commit is contained in:
parent
7fa7e7ccbd
commit
3365879408
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=529773
14
cad/graywolf/files/patch-src_Ylib_file.c
Normal file
14
cad/graywolf/files/patch-src_Ylib_file.c
Normal file
@ -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)
|
Loading…
Reference in New Issue
Block a user