Commit 2a8e779a authored by rswindell's avatar rswindell
Browse files

sys/stat.h should always be #included (for S_IREAD and S_IWRITE defs).

parent e4285c9a
......@@ -40,6 +40,8 @@
#include "wrapdll.h" /* DLLEXPORT and DLLCALL */
#include <sys/stat.h> /* S_IREAD and S_IWRITE (for use with sopen) */
#if defined(__unix__)
#include <unistd.h> /* read, write, close, ftruncate, lseek, etc. */
#endif
......@@ -54,7 +56,6 @@
#if defined(_WIN32)
#include <sys/stat.h> /* S_IREAD */
#include <fcntl.h> /* O_BINARY */
#include <windows.h> /* OF_SHARE_ */
#include <share.h> /* SH_DENY */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment