You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varsignals= [...]string{
//Omit line n here..../**Compatible with Windows start*/16: "SIGUSR1",
17: "SIGUSR2",
18: "SIGTSTP",
/**Compatible with windows end*/
}
/**Compatible with Windows start*/funcKill(...interface{}) {
return;
}
const (
SIGUSR1=Signal(0x10)
SIGUSR2=Signal(0x11)
SIGTSTP=Signal(0x12)
)
/**Compatible with windows end*/
For example on go1.5.1, the C:\Go\src\syscall\types_windows.go file is missing, but
After you edit the C:\Go\src\syscall\ztypes_windows.go file you receive 10 warnings: dll_windows.go 1 warning in func (p *Proc) Call(...) (...) {...}, exec_windows.go 1 warning in func joinExeDirAndFName(...) (...) {...}, zsyscall_windows.go 8 warnings possible misuse of unsafe.Pointer.
If it is enough to comment out the return keyword in the first two files, then it is not clear how to fix the last one.
Ideas?
fix: rename ztypes_windows.go to types_windows.go
If the fix did not help, then add a new fix file C:\Go\src\crypto\x509\root_windows.go
fix: in function checkChainSSLServerPolicy() , replace the string
para := &syscall.CertChainPolicyPara{
// ExtraPolicyPara: uintptr(unsafe.Pointer(sslPara)),
ExtraPolicyPara: syscall.Pointer((unsafe.Pointer(sslPara))),
}
Solution shared by one of our devs
https://developpaper.com/using-endless-in-windows-undefined-syscall-sigusr1/
Inside:
C:\Program Files\Go\src\syscall\types_windows.go
Originally posted by @kevincobain2000 in #35 (comment)
For example on go1.5.1, the
C:\Go\src\syscall\types_windows.go
file is missing, butAfter you edit the
C:\Go\src\syscall\ztypes_windows.go
file you receive 10 warnings:dll_windows.go
1 warning infunc (p *Proc) Call(...) (...) {...}
,exec_windows.go
1 warning infunc joinExeDirAndFName(...) (...) {...}
,zsyscall_windows.go
8 warningspossible misuse of unsafe.Pointer
.If it is enough to comment out the return keyword in the first two files, then it is not clear how to fix the last one.
Ideas?
https://cs.opensource.google/go/go/+/refs/tags/go1.5.1:src/syscall/
https://cs.opensource.google/go/go/+/refs/tags/go1.10:src/syscall/
The text was updated successfully, but these errors were encountered: