mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
pkg/system: Set appropriate CFLAGS on Solaris
The cgo in `meminfo_solaris.go` initializes variables in for loops, and therefore requires a `-std=c99` `CFLAG` in order to compile (at least on modern SmartOS). Signed-off-by: James Nugent <james@jen20.com>
This commit is contained in:
parent
705e031b98
commit
4683f588ce
1 changed files with 1 additions and 0 deletions
|
@ -7,6 +7,7 @@ import (
|
|||
"unsafe"
|
||||
)
|
||||
|
||||
// #cgo CFLAGS: -std=c99
|
||||
// #cgo LDFLAGS: -lkstat
|
||||
// #include <unistd.h>
|
||||
// #include <stdlib.h>
|
||||
|
|
Loading…
Add table
Reference in a new issue