Fio 2.13
[fio.git] / os / os-windows.h
index 9e931c9c9e505d8438117cd89c72a5d2a3dae7ab..d0495316b6e39c19772c5d4aad3252ad038ca382 100644 (file)
 #include "../file.h"
 #include "../log.h"
 #include "../lib/hweight.h"
+#include "../oslib/strcasestr.h"
 
 #include "windows/posix.h"
 
+/* Cygwin doesn't define rand_r if C99 or newer is being used */
+#if defined(WIN32) && !defined(rand_r)
+int rand_r(unsigned *);
+#endif
+
 #ifndef PTHREAD_STACK_MIN
 #define PTHREAD_STACK_MIN 65535
 #endif