From ae251919bdb598a5224915b192d90fc9c3f7376a Mon Sep 17 00:00:00 2001 From: Nahum Shalman Date: Thu, 18 Dec 2014 17:16:42 -0500 Subject: [PATCH] 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" --- sqlite3.go | 1 + 1 file changed, 1 insertion(+) 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 #include #include