aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2013-07-23 20:32:26 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2013-07-23 20:32:26 +0000
commit6212cdcdf7208ab15fe26c9d05e488a8aeb35677 (patch)
treee1fd7884c1f74b73f17304d975acb70c2a41eb59
parent7acd2b86bfe6c13684e90e99799e6259fc7578a4 (diff)
downloadgcc-6212cdcdf7208ab15fe26c9d05e488a8aeb35677.zip
gcc-6212cdcdf7208ab15fe26c9d05e488a8aeb35677.tar.gz
gcc-6212cdcdf7208ab15fe26c9d05e488a8aeb35677.tar.bz2
runtime: Declare epoll_create1 if necessary.
From-SVN: r201181
-rw-r--r--libgo/runtime/netpoll_epoll.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libgo/runtime/netpoll_epoll.c b/libgo/runtime/netpoll_epoll.c
index 04f9c75..98c5cbe 100644
--- a/libgo/runtime/netpoll_epoll.c
+++ b/libgo/runtime/netpoll_epoll.c
@@ -20,6 +20,10 @@
#define EPOLL_CLOEXEC 02000000
#endif
+#ifndef HAVE_EPOLL_CREATE1
+extern int epoll_create1(int __flags);
+#endif
+
typedef struct epoll_event EpollEvent;
static int32