X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=os%2Fos-windows.h;h=dc958f5c17189465310a48fb2a1ff28bcc3b6581;hb=d5495f0b72f8fbecb97192da430720aa56f8feb9;hp=01f555e1b6fc3be5e99389365edeb65c4bc02008;hpb=c479640d6208236744f0562b1e79535eec290e2b;p=fio.git diff --git a/os/os-windows.h b/os/os-windows.h index 01f555e1..dc958f5c 100644 --- a/os/os-windows.h +++ b/os/os-windows.h @@ -35,7 +35,6 @@ int rand_r(unsigned *); #define FIO_HAVE_CPU_AFFINITY #define FIO_HAVE_CHARDEV_SIZE #define FIO_HAVE_GETTID -#define FIO_USE_GENERIC_RAND #define FIO_PREFERRED_ENGINE "windowsaio" #define FIO_PREFERRED_CLOCK_SOURCE CS_CGETTIME @@ -74,6 +73,10 @@ int rand_r(unsigned *); /* Winsock doesn't support MSG_WAIT */ #define OS_MSG_DONTWAIT 0 +#ifndef S_ISSOCK +#define S_ISSOCK(x) 0 +#endif + #define SIGCONT 0 #define SIGUSR1 1 #define SIGUSR2 2 @@ -164,7 +167,7 @@ static inline int gettid(void) return GetCurrentThreadId(); } -static inline int init_random_seeds(unsigned long *rand_seeds, int size) +static inline int init_random_seeds(uint64_t *rand_seeds, int size) { HCRYPTPROV hCryptProv;