OpenBSD has sem_timedwait().
[mono.git] / mono / io-layer / io-layer.h
old mode 100644 (file)
new mode 100755 (executable)
index e6af1c6..394799b
@@ -11,7 +11,7 @@
 #ifndef _MONO_IOLAYER_IOLAYER_H_
 #define _MONO_IOLAYER_IOLAYER_H_
 
-#if defined(__WIN32__)
+#if defined(__WIN32__) || defined(_WIN32)
 /* Native win32 */
 #define __USE_W32_SOCKETS
 #if (_WIN32_WINNT < 0x0502)
 #include <winsock2.h>
 #include <windows.h>
 #include <winbase.h>
+/*
+ * The mingw version says:
+ * /usr/i686-pc-mingw32/sys-root/mingw/include/ws2tcpip.h:38:2: error: #error "ws2tcpip.h is not compatible with winsock.h. Include winsock2.h instead."
+ */
+#ifdef _MSC_VER
 #include <ws2tcpip.h>
+#endif
 #include <psapi.h>
 #include <shlobj.h>
 #include <mswsock.h>
 #if (_WIN32_WINNT < 0x0502)
 #undef GetProcessId
 #endif
-#ifndef HAVE_GETPROCESSID
-#ifdef _MSC_VER
-#include <winternl.h>
-#ifndef NT_SUCCESS
-#define NT_SUCCESS(status) ((NTSTATUS) (status) >= 0)
-#endif /* !NT_SUCCESS */
-#else /* !_MSC_VER */
-#include <ddk/ntddk.h>
-#include <ddk/ntapi.h>
-#endif /* _MSC_VER */
-#endif /* !HAVE_GETPROCESSID */
 #else  /* EVERYONE ELSE */
 #include "mono/io-layer/wapi.h"
 #include "mono/io-layer/uglify.h"
 #endif /* HOST_WIN32 */
 
+#ifdef __native_client__
+#include "mono/metadata/nacl-stub.h"
+#endif
+
 #endif /* _MONO_IOLAYER_IOLAYER_H_ */