From 3365879408dcc6d901cda106bb18a570d4b9c3f7 Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Sun, 29 Mar 2020 06:15:40 +0000 Subject: [PATCH] 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 | ^~~~~~~~~~~ --- cad/graywolf/files/patch-src_Ylib_file.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 cad/graywolf/files/patch-src_Ylib_file.c 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 ++#else + #include ++#endif + + /* check if a directory exists */ + BOOL YdirectoryExists(pathname)