1
0
mirror of https://github.com/golang/go synced 2024-11-22 03:04:41 -07:00

syscall: allow for mksyscall_windows.pl to be used outside of syscall

this change should have been part of fafcd328da73

R=golang-dev, bsiegert
CC=golang-dev
https://golang.org/cl/5462045
This commit is contained in:
Alex Brainman 2011-12-09 11:12:03 +11:00
parent 692c31d60a
commit 27cab90363

View File

@ -263,7 +263,7 @@ while(<>) {
} elsif($rettype eq "error") {
# Set $reg to "error" only if returned value indicate failure
$body .= "\tif $reg != 0 {\n";
$body .= "\t\t$name = Errno($reg)\n";
$body .= "\t\t$name = ${syscalldot}Errno($reg)\n";
$body .= "\t}\n";
} else {
$body .= "\t$name = $rettype($reg)\n";