summary refs log tree commit diff
path: root/scoop.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-03-02 18:46:02 -0500
committerJune McEnroe <june@causal.agency>2020-03-02 18:46:02 -0500
commit834fb3a3615c7546af0f35e8f0a0b31d923d7585 (patch)
treeadc9d802242884eaf611ba79ccc8e3d59b9a807c /scoop.c
parentImplement the causal.agency/consumer capability (diff)
downloadlitterbox-834fb3a3615c7546af0f35e8f0a0b31d923d7585.tar.gz
litterbox-834fb3a3615c7546af0f35e8f0a0b31d923d7585.zip
Replace .mk files with configure script
Diffstat (limited to 'scoop.c')
-rw-r--r--scoop.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/scoop.c b/scoop.c
index 922c7cd..a12b37b 100644
--- a/scoop.c
+++ b/scoop.c
@@ -28,6 +28,10 @@
 
 #include "database.h"
 
+#ifndef SQLITE3_BIN
+#define SQLITE3_BIN "sqlite3"
+#endif
+
 struct Event {
 	const char *network;
 	const char *context;
@@ -419,7 +423,7 @@ int main(int argc, char *argv[]) {
 		path = strdup(sqlite3_db_filename(db, "main"));
 		if (!path) err(EX_OSERR, "strdup");
 		dbClose();
-		execlp("sqlite3", "sqlite3", path, NULL);
+		execlp(SQLITE3_BIN, "sqlite3", path, NULL);
 		err(EX_UNAVAILABLE, "sqlite3");
 	}