Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't this project build in Windows? #35

Open
cye1024 opened this issue Sep 8, 2016 · 6 comments
Open

can't this project build in Windows? #35

cye1024 opened this issue Sep 8, 2016 · 6 comments

Comments

@cye1024
Copy link

cye1024 commented Sep 8, 2016

I add endless to my project.
and i build it in windows env.
then it show this:
error

@C3sarRC
Copy link

C3sarRC commented Apr 19, 2018

cye1024++

@shekkm
Copy link

shekkm commented Sep 21, 2018

any solutions?

@TimLiuDream
Copy link

so am i

github.com/fvbock/endless

..\github.com\fvbock\endless\endless.go:64:3: undefined: syscall.SIGUSR1
..\github.com\fvbock\endless\endless.go:65:3: undefined: syscall.SIGUSR2
..\github.com\fvbock\endless\endless.go:68:3: undefined: syscall.SIGTSTP
..\github.com\fvbock\endless\endless.go:111:5: undefined: syscall.SIGUSR1
..\github.com\fvbock\endless\endless.go:112:5: undefined: syscall.SIGUSR2
..\github.com\fvbock\endless\endless.go:115:5: undefined: syscall.SIGTSTP
..\github.com\fvbock\endless\endless.go:119:5: undefined: syscall.SIGUSR1
..\github.com\fvbock\endless\endless.go:120:5: undefined: syscall.SIGUSR2
..\github.com\fvbock\endless\endless.go:123:5: undefined: syscall.SIGTSTP
..\github.com\fvbock\endless\endless.go:224:3: undefined: syscall.Kill
..\github.com\fvbock\endless\endless.go:224:3: too many errors

@damithadayananda
Copy link

is there solution for windows

@ItsFunny
Copy link

ItsFunny commented Jan 7, 2019

any solution for windows ?

@kevincobain2000
Copy link

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

var signals = [...]string{
    //Omit line n here....
    /**Compatible with Windows start*/
    16: "SIGUSR1",
    17: "SIGUSR2",
    18: "SIGTSTP",
    /**Compatible with windows end*/
}
/**Compatible with Windows start*/
func Kill(...interface{}) {
    return;
}
const (
    SIGUSR1 = Signal(0x10)
    SIGUSR2 = Signal(0x11)
    SIGTSTP = Signal(0x12)
)
/**Compatible with windows end*/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants