diff options
author | Nahum Shalman <nshalman-github@elys.com> | 2014-12-18 17:16:42 -0500 |
---|---|---|
committer | Nahum Shalman <nshalman-github@elys.com> | 2014-12-18 17:16:42 -0500 |
commit | ae251919bdb598a5224915b192d90fc9c3f7376a (patch) | |
tree | 3127dc11edc1cb39e7975c6fca57a45caf1aaa27 | |
parent | Merge pull request #161 from neilconway/master (diff) | |
download | golite-ae251919bdb598a5224915b192d90fc9c3f7376a.tar.gz golite-ae251919bdb598a5224915b192d90fc9c3f7376a.tar.xz |
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"
-rw-r--r-- | sqlite3.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -6,6 +6,7 @@ package sqlite3 /* +#cgo CFLAGS: -std=gnu99 #include <sqlite3.h> #include <stdlib.h> #include <string.h> |