1
0
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:
James Nugent
2017-03-09 13:36:47 -05:00
parent f54d163984
commit ce7091af99

View File

@@ -7,6 +7,7 @@ import (
"unsafe"
)
// #cgo CFLAGS: -std=c99
// #cgo LDFLAGS: -lkstat
// #include <unistd.h>
// #include <stdlib.h>