diff options
author | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2018-09-20 13:42:10 +0000 |
---|---|---|
committer | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2018-09-20 13:42:10 +0000 |
commit | c88d80655c88e7a95122550b02d04f39b456c95f (patch) | |
tree | 92d4b2a9687b01d4beeafdf2599ec6620a3c1b7d /databases/sqlite3 | |
parent | 44bc8f69f70d3f51f51d87df835fc75844e3990e (diff) | |
download | ports-c88d80655c88e7a95122550b02d04f39b456c95f.tar.gz ports-c88d80655c88e7a95122550b02d04f39b456c95f.zip |
Fix configure error when SESSION is enabled
In file included from <built-in>:318:
<command line>:39:28: warning: ISO C99 requires whitespace after the macro name [-Wc99-extensions]
#define SQLITE_ENABLE_RTREE-DSQLITE_ENABLE_SESSION 1
^
sqlite3.c:308:5: error: token is not a valid binary operator in a preprocessor subexpression
#if SQLITE_ENABLE_RTREE
^~~~~~~~~~~~~~~~~~~
<command line>:39:52: note: expanded from here
#define SQLITE_ENABLE_RTREE-DSQLITE_ENABLE_SESSION 1
~~~~~~~~~~~~~~~~~~~~~~~ ^
1 warning and 1 error generated.
*** Error code 1
Approved by: portmgr (blanket)
Notes
Notes:
svn path=/head/; revision=480170
Diffstat (limited to 'databases/sqlite3')
-rw-r--r-- | databases/sqlite3/files/patch-configure | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/databases/sqlite3/files/patch-configure b/databases/sqlite3/files/patch-configure new file mode 100644 index 000000000000..cdd05c582dee --- /dev/null +++ b/databases/sqlite3/files/patch-configure @@ -0,0 +1,11 @@ +--- configure.orig 2018-09-18 20:36:42 UTC ++++ configure +@@ -13638,7 +13638,7 @@ if test "${enable_session+set}" = set; t + fi + + if test x"$enable_session" = "xyes"; then +- BUILD_CFLAGS="$BUILD_CFLAGS-DSQLITE_ENABLE_SESSION -DSQLITE_ENABLE_PREUPDATE_HOOK" ++ BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_ENABLE_SESSION -DSQLITE_ENABLE_PREUPDATE_HOOK" + fi + #----------------------------------------------------------------------- + |