diff options
author | Ian Lance Taylor <iant@google.com> | 2013-07-23 20:32:26 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2013-07-23 20:32:26 +0000 |
commit | 5f20a810bfe95d064b0194b6a7b212c2a7df797d (patch) | |
tree | e1fd7884c1f74b73f17304d975acb70c2a41eb59 | |
parent | f521644003c5a8767227376b70ea7bcbf8d5d90d (diff) |
runtime: Declare epoll_create1 if necessary.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@201181 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | libgo/runtime/netpoll_epoll.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libgo/runtime/netpoll_epoll.c b/libgo/runtime/netpoll_epoll.c index 04f9c756472..98c5cbeb587 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 |