runtime: Declare epoll_create1 if necessary.
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 23 Jul 2013 20:32:26 +0000 (20:32 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 23 Jul 2013 20:32:26 +0000 (20:32 +0000)
From-SVN: r201181

libgo/runtime/netpoll_epoll.c

index 04f9c756472d10903bc04a5a99b86fa4e9767660..98c5cbeb58715ce3fdfd2227e33821d86e1e3d1f 100644 (file)
 #define EPOLL_CLOEXEC 02000000
 #endif
 
+#ifndef HAVE_EPOLL_CREATE1
+extern int epoll_create1(int __flags);
+#endif
+
 typedef struct epoll_event EpollEvent;
 
 static int32