aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2013-10-02 12:50:50 +0900
committermattn <mattn.jp@gmail.com>2013-10-02 12:51:44 +0900
commit2a2faeaf3856ed76df31a43cd872e263625b1cf0 (patch)
tree370349dc2c0a765e3fb0d33546a8244a56f72e24
parentMerge pull request #86 from porjo/patch-1 (diff)
downloadgolite-2a2faeaf3856ed76df31a43cd872e263625b1cf0.tar.gz
golite-2a2faeaf3856ed76df31a43cd872e263625b1cf0.tar.xz
Include errno.h when build on cygwin. Closes #87
-rw-r--r--sqlite3.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/sqlite3.go b/sqlite3.go
index 9993b18..df3ad10 100644
--- a/sqlite3.go
+++ b/sqlite3.go
@@ -5,6 +5,10 @@ package sqlite3
#include <stdlib.h>
#include <string.h>
+#ifdef __CYGWIN__
+# include <errno.h>
+#endif
+
#ifndef SQLITE_OPEN_READWRITE
# define SQLITE_OPEN_READWRITE 0
#endif