Prepare Mono for Android NDK with unified headers (#5680)
[mono.git] / mono / metadata / w32socket-unix.c
index bc1b5ccd818d44f09bfa459f94156f2aaaae2b22..28a5a63a5b42c892dd703e7d1f6f5a4f88d2e167 100644 (file)
@@ -54,6 +54,7 @@
 #include "fdhandle.h"
 #include "utils/mono-logger-internals.h"
 #include "utils/mono-poll.h"
+#include "utils/mono-compiler.h"
 
 typedef struct {
        MonoFDHandle fdhandle;
@@ -1373,7 +1374,7 @@ mono_w32socket_get_available (SOCKET sock, guint64 *amount)
                return SOCKET_ERROR;
        }
 
-#if defined (PLATFORM_MACOSX)
+#if defined (HOST_DARWIN)
        // ioctl (socket, FIONREAD, XXX) returns the size of
        // the UDP header as well on Darwin.
        //