Files
podman/libpod/container_attach_linux_cgo.go
Giuseppe Scrivano c81a8f2b6d attach: move cgo bits to a different file
move the cgo bits to a separate file to allow building without cgo.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-02 16:41:02 +02:00

12 lines
227 B
Go

//+build linux,cgo
package libpod
//#include <sys/un.h>
// extern int unix_path_length(){struct sockaddr_un addr; return sizeof(addr.sun_path) - 1;}
import "C"
func unixPathLength() int {
return int(C.unix_path_length())
}