windows: Include <sys/stat.h> explicitly before overloading memset()/memcpy()

fstat() in newer MinGWs is defined as non-static inline. With our new static
inline memset()/memcpy() overloads, this raises a warning. To avoid it,
explicitly include <sys/stat.h> once before defining these overloads.
This commit is contained in:
Martin Willi 2014-06-25 16:06:59 +02:00
parent fc8ca5f2f2
commit 07b57e203b
1 changed files with 1 additions and 0 deletions

View File

@ -26,6 +26,7 @@
#include <direct.h>
#include <inttypes.h>
#include <unistd.h>
#include <sys/stat.h>
/* undef Windows variants evaluating values more than once */
#undef min