jessevdk / go-flags

go command line option parser
http://godoc.org/github.com/jessevdk/go-flags
BSD 3-Clause "New" or "Revised" License
2.59k stars 308 forks source link

feature: Enable compiling on AIX #357

Closed aklyachkin closed 3 years ago

aklyachkin commented 3 years ago

Small&obvious change to enable compilation on AIX.

Without the patch:

$ GOOS=aix GOARCH=ppc64 go build -o rice.aix
# github.com/jessevdk/go-flags
../../../../../pkg/mod/github.com/jessevdk/go-flags@v1.4.0/termsize.go:19:19: undefined: syscall.SYS_IOCTL

With the patch:

$ GOOS=aix GOARCH=ppc64 go build -o rice.aix && echo OK
OK