[Ecls-list] Patch: sys/stat.h in file.d

Josh Elsasser josh at elsasser.org
Sat Jan 24 21:09:36 UTC 2009


Rather than add __OpenBSD__ to the list of OSes under which fcntl.h
doesn't happen to pull in sys/stat.h, how about including it
unconditionally?

diff --git src/c/file.d src/c/file.d
index 023067e..b728e4e 100644
--- src/c/file.d
+++ src/c/file.d
@@ -27,10 +27,7 @@
 #include <sys/types.h>
 #include <unistd.h>
 #include <fcntl.h>
-#if defined(__DragonFly__) || defined(__FreeBSD__)
 #include <sys/stat.h>
-/* it isn't pulled in by fcntl.h */
-#endif
 #include <string.h>
 #include <stdio.h>
 #include <ecl/ecl-inl.h>




More information about the ecl-devel mailing list