diff options
Diffstat (limited to '')
-rw-r--r-- | scoop.c | 6 |
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"); } |