From 2a2faeaf3856ed76df31a43cd872e263625b1cf0 Mon Sep 17 00:00:00 2001 From: mattn Date: Wed, 2 Oct 2013 12:50:50 +0900 Subject: [PATCH] Include errno.h when build on cygwin. Closes #87 --- sqlite3.go | 4 ++++ 1 file changed, 4 insertions(+) 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 #include +#ifdef __CYGWIN__ +# include +#endif + #ifndef SQLITE_OPEN_READWRITE # define SQLITE_OPEN_READWRITE 0 #endif