From dec58a24c3bcd41456823328c92f8e9c698a66c3 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Tue, 1 Oct 2019 21:23:13 -0400 Subject: allow for additional builtins (needed for Bosix) --- builtins.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/builtins.c b/builtins.c index 886ebaf..b98d16e 100644 --- a/builtins.c +++ b/builtins.c @@ -84,6 +84,10 @@ int umask_main(int argc, char *argv[]); int unalias_main(int argc, char *argv[]); int wait_main(int argc, char *argv[]); +#ifndef EXTRA_BUILTINS +#define EXTRA_BUILTINS /* empty */ +#endif + static struct builtin regular_builtins[] = { { "alias", alias_main }, { "bg", bg_main }, @@ -103,6 +107,7 @@ static struct builtin regular_builtins[] = { { "umask", umask_main }, { "unalias", unalias_main }, { "wait", wait_main }, + EXTRA_BUILTINS { 0, 0 }, }; -- cgit v1.2.1