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

cmd/samterm: Update Mkfifo calls to use unix package #124

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bhuntsman
Copy link

The samterm code calls syscall.Mkfifo in two places. When compiling on AIX, this results in a compilation error:

$ go install
./unix.go:25:17: undefined: syscall.Mkfifo
./unix.go:36:22: undefined: syscall.Mkfifo

This is because the Mkfifo call is not implemented for AIX in the syscall package. However, Mkfifo is available in the unix package, which is already imported in cmd/samterm/unix.go. This change uses the Mkfifo from unix instead of syscall.

Fixes #123

The samterm code calls syscall.Mkfifo in two places.  When compiling on
AIX, this results in a compilation error:

$ go install
./unix.go:25:17: undefined: syscall.Mkfifo
./unix.go:36:22: undefined: syscall.Mkfifo

This is because the Mkfifo call is not implemented for AIX in the syscall
package.  However, Mkfifo is available in the unix package, which is
already imported in cmd/samterm/unix.go.  This change uses the Mkfifo from
unix instead of syscall.

Fixes 9fans#123
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

Successfully merging this pull request may close these issues.

samterm doesn't compile on AIX
1 participant