mirror of
https://github.com/golang/go
synced 2024-11-22 03:34:40 -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:
parent
692c31d60a
commit
27cab90363
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user