Created
March 28, 2014 23:02
-
-
Save chinchliff/9844791 to your computer and use it in GitHub Desktop.
A patch for sqlitewrapped compilation on mac os x
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Makefile b/Makefile | |
index 8272c7f..d6b9118 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -6,8 +6,9 @@ INSTALL_LIB = $(INSTALL_PREFIX)/lib | |
INSTALL_INCLUDE = $(INSTALL_PREFIX)/include | |
INSTALL = /usr/bin/install | |
-INCLUDE = -I/usr/devel/include -I. | |
-CFLAGS = -Wall -g -O2 $(INCLUDE) -MD | |
+INCLUDE = -I/usr/devel/include -I/usr/include | |
+CFLAGS = -Wall -g -O2 $(INCLUDE) -MD -arch x86_64 | |
+ | |
# namespace | |
#CFLAGS += -DSQLITEW_NAMESPACE=sqlitew | |
CPPFLAGS = $(CFLAGS) | |
diff --git a/SysLog.cpp b/SysLog.cpp | |
index ef371a8..3751a00 100644 | |
--- a/SysLog.cpp | |
+++ b/SysLog.cpp | |
@@ -33,6 +33,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
#include <sqlite3.h> | |
#include <syslog.h> | |
+#include <cstring> | |
#include "Database.h" | |
#include "Query.h" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment