mirror of
https://github.com/docker/cli.git
synced 2026-01-13 18:22:35 +03: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> Upstream-commit: 4683f588ce893f3156ecfa63bfd16ebda1d09157 Component: engine
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
// #cgo CFLAGS: -std=c99
|
||||
// #cgo LDFLAGS: -lkstat
|
||||
// #include <unistd.h>
|
||||
// #include <stdlib.h>
|
||||
|
||||
Reference in New Issue
Block a user