platforms/windows: Add S_ISSOCK macro.
authorAdam Kupczyk <akupczyk@redhat.com>
Fri, 3 Aug 2018 10:48:28 +0000 (12:48 +0200)
committerAdam Kupczyk <akupczyk@redhat.com>
Fri, 3 Aug 2018 10:48:28 +0000 (12:48 +0200)
Signed-off-by: Adam Kupczyk <akupczyk@redhat.com>
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