X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=os%2Fos-windows.h;h=3e9f73413b26a5f2c5e778b63df4281f2e7df994;hp=01f555e1b6fc3be5e99389365edeb65c4bc02008;hb=de5ed0e4d398bc9d4576f9b2b82d7686989c27e1;hpb=c479640d6208236744f0562b1e79535eec290e2b diff --git a/os/os-windows.h b/os/os-windows.h index 01f555e1..3e9f7341 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 @@ -159,12 +162,14 @@ static inline unsigned long long os_phys_mem(void) return (unsigned long long) pages * (unsigned long long) pagesize; } +#ifndef CONFIG_HAVE_GETTID static inline int gettid(void) { return GetCurrentThreadId(); } +#endif -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;