Skip to content

Commit

Permalink
make libcontainer compile on freebsd (again)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Guskov <[email protected]>
  • Loading branch information
kvasdopil committed Jun 5, 2015
1 parent 57a50dd commit f66187d
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 4 deletions.
2 changes: 2 additions & 0 deletions configs/config_linux.go → configs/config_unix.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build freebsd linux

package configs

import "fmt"
Expand Down
2 changes: 1 addition & 1 deletion configs/device_defaults.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build linux
// +build linux freebsd

package configs

Expand Down
2 changes: 1 addition & 1 deletion configs/namespaces_linux.go → configs/namespaces_unix.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build linux
// +build linux freebsd

package configs

Expand Down
2 changes: 2 additions & 0 deletions devices/devices_linux.go → devices/devices_unix.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build linux freebsd

package devices

import (
Expand Down
2 changes: 1 addition & 1 deletion devices/number.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build linux
// +build linux freebsd

package devices

Expand Down
5 changes: 5 additions & 0 deletions stats_freebsd.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package libcontainer

type Stats struct {
Interfaces []*NetworkInterface
}
2 changes: 1 addition & 1 deletion system/sysconfig.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build cgo,linux
// +build cgo,linux cgo,freebsd

package system

Expand Down

0 comments on commit f66187d

Please sign in to comment.