Skip to content

Commit f66187d

Browse files
committed
make libcontainer compile on freebsd (again)
Signed-off-by: Alexey Guskov <[email protected]>
1 parent 57a50dd commit f66187d

File tree

7 files changed

+13
-4
lines changed

7 files changed

+13
-4
lines changed

configs/config_linux.go renamed to configs/config_unix.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// +build freebsd linux
2+
13
package configs
24

35
import "fmt"

configs/device_defaults.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build linux
1+
// +build linux freebsd
22

33
package configs
44

configs/namespaces_linux.go renamed to configs/namespaces_unix.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build linux
1+
// +build linux freebsd
22

33
package configs
44

devices/devices_linux.go renamed to devices/devices_unix.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// +build linux freebsd
2+
13
package devices
24

35
import (

devices/number.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build linux
1+
// +build linux freebsd
22

33
package devices
44

stats_freebsd.go

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package libcontainer
2+
3+
type Stats struct {
4+
Interfaces []*NetworkInterface
5+
}

system/sysconfig.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build cgo,linux
1+
// +build cgo,linux cgo,freebsd
22

33
package system
44

0 commit comments

Comments
 (0)