-
Notifications
You must be signed in to change notification settings - Fork 343
Open
Description
if your work use this file, when you go build to make a exe, there will be
undefined: syscall.SIGUSR1
undefined: syscall.SIGUSR2
undefined: syscall.SIGTSTP
undefined: syscall.SIGUSR1
undefined: syscall.SIGUSR2
undefined: syscall.SIGTSTP
undefined: syscall.SIGUSR1
undefined: syscall.SIGUSR2
undefined: syscall.SIGTSTP
undefined: syscall.Kill
too many errors
Because these constants are not available in Windows,
For normal operation, you can modify the file in GOROOT \ src \ syscall \ types_windows.go
Anyway, these constants are useless under windows
var signals = [...]string{ //It already exists, usually in line 67 of the document
// Omit some rows
/** change start */
16: "SIGUSR1",
17: "SIGUSR2",
18: "SIGTSTP",
/** change end */
}
/** change start */
func Kill(...interface{}) { //It doesn't exist, you can add it after last change
return;
}
const (
SIGUSR1 = Signal(0x10)
SIGUSR2 = Signal(0x11)
SIGTSTP = Signal(0x12)
)
/** change end */
Method from: https://learnku.com/articles/51696
xxi-arch and gif-gif
Metadata
Metadata
Assignees
Labels
No labels