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/os_linux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pkg/runtime/os_linux.c') diff --git a/src/pkg/runtime/os_linux.c b/src/pkg/runtime/os_linux.c index 33c7563743..d3677f2e6c 100644 --- a/src/pkg/runtime/os_linux.c +++ b/src/pkg/runtime/os_linux.c @@ -293,7 +293,7 @@ extern void runtime·sigreturn(void); // calls rt_sigreturn, only used with SA_R void runtime·setsig(int32 i, GoSighandler *fn, bool restart) { - Sigaction sa; + SigactionT sa; runtime·memclr((byte*)&sa, sizeof sa); sa.sa_flags = SA_ONSTACK | SA_SIGINFO | SA_RESTORER; @@ -319,7 +319,7 @@ runtime·setsig(int32 i, GoSighandler *fn, bool restart) GoSighandler* runtime·getsig(int32 i) { - Sigaction sa; + SigactionT sa; runtime·memclr((byte*)&sa, sizeof sa); if(runtime·rt_sigaction(i, nil, &sa, sizeof(sa.sa_mask)) != 0) -- cgit v1.3-5-g9baa