From 9a75c748367c2ff84de355b136c33760a6b6928a Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 29 Aug 2014 16:00:31 -0400 Subject: runtime: include constants and defs_*_*.h types in generated Go defs I had to rename Kevent and Sigaction to avoid the functions of the same (lowercase) name. LGTM=iant, r R=golang-codereviews, r, iant, aram.h CC=dvyukov, golang-codereviews, khr https://golang.org/cl/140740043 --- src/pkg/runtime/netpoll_kqueue.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/pkg/runtime/netpoll_kqueue.c') diff --git a/src/pkg/runtime/netpoll_kqueue.c b/src/pkg/runtime/netpoll_kqueue.c index 171346cce2..6b7fc869d3 100644 --- a/src/pkg/runtime/netpoll_kqueue.c +++ b/src/pkg/runtime/netpoll_kqueue.c @@ -11,7 +11,7 @@ // Integrated network poller (kqueue-based implementation). int32 runtime·kqueue(void); -int32 runtime·kevent(int32, Kevent*, int32, Kevent*, int32, Timespec*); +int32 runtime·kevent(int32, KeventT*, int32, KeventT*, int32, Timespec*); void runtime·closeonexec(int32); static int32 kq = -1; @@ -30,7 +30,7 @@ runtime·netpollinit(void) int32 runtime·netpollopen(uintptr fd, PollDesc *pd) { - Kevent ev[2]; + KeventT ev[2]; int32 n; // Arm both EVFILT_READ and EVFILT_WRITE in edge-triggered mode (EV_CLEAR) @@ -72,7 +72,7 @@ G* runtime·netpoll(bool block) { static int32 lasterr; - Kevent events[64], *ev; + KeventT events[64], *ev; Timespec ts, *tp; int32 n, i, mode; G *gp; -- cgit v1.3-5-g9baa