Skip to content

use golang.org/x/sys/unix for dup2#28

Merged
estesp merged 1 commit intocontainerd:masterfrom
BenTheElder:unix-dup2
Oct 26, 2020
Merged

use golang.org/x/sys/unix for dup2#28
estesp merged 1 commit intocontainerd:masterfrom
BenTheElder:unix-dup2

Conversation

@BenTheElder
Copy link
Copy Markdown
Contributor

fixes build on arm64 / fixes #27

Signed-off-by: Benjamin Elder [email protected]

fixes build on arm64

Signed-off-by: Benjamin Elder <[email protected]>
Copy link
Copy Markdown
Member

@mxpv mxpv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was quick! Thanks.
LGTM

@BenTheElder
Copy link
Copy Markdown
Contributor Author

Before:

$ GOARCH=arm64 GOOS=linux go build ./...
# github.com/containerd/fifo
./fifo.go:51:12: undefined: syscall.Dup2

After:

$ GOARCH=arm64 GOOS=linux go build ./...

Copy link
Copy Markdown
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@estesp estesp merged commit 0724c46 into containerd:master Oct 26, 2020
@BenTheElder BenTheElder deleted the unix-dup2 branch October 26, 2020 21:42
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.

fails to compile on arm64 (syscall.Dup2 not available)

3 participants