summaryrefslogtreecommitdiff
path: root/cad/graywolf/files/patch-src_Ylib_file.c
blob: c2c9b4cc65e3e373e3377066002a3913d2bda3e0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)