Merge branch 'windows-s_issock' of https://github.com/aclamk/fio
authorJens Axboe <axboe@kernel.dk>
Fri, 3 Aug 2018 15:15:30 +0000 (09:15 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 3 Aug 2018 15:15:30 +0000 (09:15 -0600)
* 'windows-s_issock' of https://github.com/aclamk/fio:
  platforms/windows: Add S_ISSOCK macro.

os/os-windows.h

index 01f555e1b6fc3be5e99389365edeb65c4bc02008..aad446e7b71da5f6c8a5846cfe9e8eae5386e5f7 100644 (file)
@@ -74,6 +74,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