diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2013-11-14 20:15:04 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2013-11-14 20:15:04 +0000 |
commit | 03a231f7521b62a593fd7a4ce7067102288bd28f (patch) | |
tree | 8d7245531a5a7415aca8d276ddcd1dde96652404 /libgo/runtime/netpoll_kqueue.c | |
parent | 7d608db296739dfbbb9dfa65d796b82691158e53 (diff) | |
download | gcc-03a231f7521b62a593fd7a4ce7067102288bd28f.zip gcc-03a231f7521b62a593fd7a4ce7067102288bd28f.tar.gz gcc-03a231f7521b62a593fd7a4ce7067102288bd28f.tar.bz2 |
runtime: Add netpoll code that uses select.
Required for Solaris support.
From-SVN: r204817
Diffstat (limited to 'libgo/runtime/netpoll_kqueue.c')
-rw-r--r-- | libgo/runtime/netpoll_kqueue.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libgo/runtime/netpoll_kqueue.c b/libgo/runtime/netpoll_kqueue.c index 7890161..5d3f856 100644 --- a/libgo/runtime/netpoll_kqueue.c +++ b/libgo/runtime/netpoll_kqueue.c @@ -5,8 +5,8 @@ // +build darwin dragonfly freebsd netbsd openbsd #include "runtime.h" -#include "defs_GOOS_GOARCH.h" -#include "os_GOOS.h" +#include "defs.h" +#include "malloc.h" // Integrated network poller (kqueue-based implementation). @@ -102,3 +102,9 @@ retry: goto retry; return gp; } + +void +runtime_netpoll_scan(void (*addroot)(Obj)) +{ + USED(addroot); +} |