containerd/archutils/epoll.go
Aleksa Sarai 7c572f1673 archutils: fix build on aarch64
Due to an invalid architecture name (arm64), containerd could not build
on aarch64 machines. Fix this by using the correct name of the
architecture for conditional building.

Signed-off-by: Aleksa Sarai <asarai@suse.de>
2016-04-17 12:38:05 +10:00

19 lines
400 B
Go

// +build linux,!aarch64
package archutils
import (
"syscall"
)
func EpollCreate1(flag int) (int, error) {
return syscall.EpollCreate1(flag)
}
func EpollCtl(epfd int, op int, fd int, event *syscall.EpollEvent) error {
return syscall.EpollCtl(epfd, op, fd, event)
}
func EpollWait(epfd int, events []syscall.EpollEvent, msec int) (int, error) {
return syscall.EpollWait(epfd, events, msec)
}