[runtime] Make sure EPOLLONESHOT is defined
authorLudovic Henry <ludovic.henry@xamarin.com>
Tue, 21 Jul 2015 15:17:07 +0000 (12:17 -0300)
committerLudovic Henry <ludovic.henry@xamarin.com>
Tue, 21 Jul 2015 15:17:22 +0000 (12:17 -0300)
mono/metadata/threadpool-ms-io-epoll.c

index b6d70f0983ac8938d6e16ed10e61562793a7e9a0..b7deef04375ac1cb7c669f40a1ba7ab970a1ce7b 100644 (file)
@@ -63,6 +63,11 @@ epoll_register_fd (gint fd, gint events, gboolean is_new)
        } else {
                struct epoll_event event;
 
+#ifndef EPOLLONESHOT
+/* it was only defined on android in May 2013 */
+#define EPOLLONESHOT 0x40000000
+#endif
+
                event.data.fd = fd;
                event.events = EPOLLONESHOT;
                if ((events & MONO_POLLIN) != 0)