summaryrefslogtreecommitdiff
path: root/src/runtime/c
diff options
context:
space:
mode:
authorodanoburu <bcclaro@gmail.com>2018-05-23 11:22:46 -0300
committerodanoburu <bcclaro@gmail.com>2018-05-23 11:22:46 -0300
commitc8b1cb715e48665f3550ae1ccb41a9e521f6557b (patch)
treec9921a1064486db3478e42c37e3c453aa3042342 /src/runtime/c
parent1c7e99cdca020ccb1e55b067961813a7752eba3b (diff)
parent10df5a7269721ab0807ec7a0fe4b75cd1bb16d87 (diff)
Merge remote-tracking branch 'upstream/master' into por
Diffstat (limited to 'src/runtime/c')
-rw-r--r--src/runtime/c/Makefile.am5
-rw-r--r--src/runtime/c/sg/sqlite3Btree.c1
2 files changed, 4 insertions, 2 deletions
diff --git a/src/runtime/c/Makefile.am b/src/runtime/c/Makefile.am
index edc4f88b2..8f9c8bf56 100644
--- a/src/runtime/c/Makefile.am
+++ b/src/runtime/c/Makefile.am
@@ -87,13 +87,14 @@ libpgf_la_SOURCES = \
pgf/graphviz.c \
pgf/aligner.c \
pgf/pgf.c \
- pgf/pgf.h \
-libpgf_la_LDFLAGS = "-no-undefined"
+ pgf/pgf.h
+libpgf_la_LDFLAGS = -no-undefined
libpgf_la_LIBADD = libgu.la
libsg_la_SOURCES = \
sg/sqlite3Btree.c \
sg/sg.c
+libsg_la_LDFLAGS = -no-undefined
libsg_la_LIBADD = libgu.la libpgf.la
bin_PROGRAMS =
diff --git a/src/runtime/c/sg/sqlite3Btree.c b/src/runtime/c/sg/sqlite3Btree.c
index a75cfd62b..ee6bd206a 100644
--- a/src/runtime/c/sg/sqlite3Btree.c
+++ b/src/runtime/c/sg/sqlite3Btree.c
@@ -4918,6 +4918,7 @@ SQLITE_PRIVATE int sqlite3PendingByte;
# define SQLITE_UTF16NATIVE SQLITE_UTF16BE
#endif
#if !defined(SQLITE_BYTEORDER)
+const int sqlite3one = 1;
# define SQLITE_BYTEORDER 0 /* 0 means "unknown at compile-time" */
# define SQLITE_BIGENDIAN (*(char *)(&sqlite3one)==0)
# define SQLITE_LITTLEENDIAN (*(char *)(&sqlite3one)==1)