set CFLAGS: -std=gnu99

Fixes the following error message on SmartOS:

$ go get github.com/mattn/go-sqlite3
In file included from /usr/include/stdio.h:37:0,
                 from go/src/github.com/mattn/go-sqlite3/sqlite3.c:8422:
/opt/local/gcc47/lib/gcc/i386-sun-solaris2.11/4.7.3/include-fixed/sys/feature_tests.h:366:2: error: #error "Compiler or options invalid; UNIX 03 and POSIX.1-2001 applications  require the use of c99"
This commit is contained in:
Nahum Shalman 2014-12-18 17:16:42 -05:00
parent c9a0db5d89
commit ae251919bd
1 changed files with 1 additions and 0 deletions

View File

@ -6,6 +6,7 @@
package sqlite3 package sqlite3
/* /*
#cgo CFLAGS: -std=gnu99
#include <sqlite3.h> #include <sqlite3.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>