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:
James Nugent 2017-03-09 13:36:47 -05:00
parent 705e031b98
commit 4683f588ce
1 changed files with 1 additions and 0 deletions

View File

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