aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNahum Shalman <nshalman-github@elys.com>2014-12-18 17:16:42 -0500
committerNahum Shalman <nshalman-github@elys.com>2014-12-18 17:16:42 -0500
commitae251919bdb598a5224915b192d90fc9c3f7376a (patch)
tree3127dc11edc1cb39e7975c6fca57a45caf1aaa27
parentMerge pull request #161 from neilconway/master (diff)
downloadgolite-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.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/sqlite3.go b/sqlite3.go
index cef2048..bc532cd 100644
--- a/sqlite3.go
+++ b/sqlite3.go
@@ -6,6 +6,7 @@
package sqlite3
/*
+#cgo CFLAGS: -std=gnu99
#include <sqlite3.h>
#include <stdlib.h>
#include <string.h>