diff mbox

[Fwd:,Hurd,port,for,go,7-9,(9)]

Message ID 1397221113.1276.124.camel@G3620.my.own.domain
State New
Headers show

Commit Message

Svante Signell April 11, 2014, 12:58 p.m. UTC
(continued)

patch7.diff: src/libgo/go/syscall/wait.c
Set WCONTINUED to zero if not defined (same fix as for lto in gcc-4.9)

patch8.diff: src/libgo/mksysinfo.sh
Add special treatment of EWOULDBLOCK, SYS_FCNTL and st_dev since they
are either not defined or defined differently for the script to catch
them. 

patch9.diff: src/libgo/runtime/netpoll.goc
Rename errno to errno1 since errno clashes with <errno.h> included in
that file on Hurd.
diff mbox

Patch

--- a/src/libgo/runtime/netpoll.goc.orig	2013-11-07 01:23:21.000000000 +0100
+++ b/src/libgo/runtime/netpoll.goc	2014-03-28 09:07:15.000000000 +0100
@@ -68,7 +68,7 @@ 
 	runtime_netpollinit();
 }
 
-func runtime_pollOpen(fd uintptr) (pd *PollDesc, errno int) {
+func runtime_pollOpen(fd uintptr) (pd *PollDesc, errno1 int) {
 	pd = allocPollDesc();
 	runtime_lock(pd);
 	if(pd->wg != nil && pd->wg != READY)
@@ -84,7 +84,7 @@ 
 	pd->wd = 0;
 	runtime_unlock(pd);
 
-	errno = runtime_netpollopen(fd, pd);
+	errno1 = runtime_netpollopen(fd, pd);
 }
 
 func runtime_pollClose(pd *PollDesc) {