From 834fb3a3615c7546af0f35e8f0a0b31d923d7585 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Mon, 2 Mar 2020 18:46:02 -0500 Subject: Replace .mk files with configure script --- scoop.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scoop.c') 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"); } -- cgit 1.4.1