diff options
author | Bryan Drewery <bdrewery@FreeBSD.org> | 2020-04-21 00:37:55 +0000 |
---|---|---|
committer | Bryan Drewery <bdrewery@FreeBSD.org> | 2020-04-21 00:37:55 +0000 |
commit | 6c346639ba986a285e456099bc2faf1fe17954df (patch) | |
tree | 0444e5c3e2e66b4db5a0e626e449e0520551595e /bin/sh | |
parent | ee2e9f4dbc195bf07bfc8e8ab2faed357d617e81 (diff) | |
download | src-test2-6c346639ba986a285e456099bc2faf1fe17954df.tar.gz src-test2-6c346639ba986a285e456099bc2faf1fe17954df.zip |
Fix build with NO_HISTORY set
Reviewed by: jilles
Differential Revision: https://reviews.freebsd.org/D24458
Notes
Notes:
svn path=/head/; revision=360139
Diffstat (limited to 'bin/sh')
-rw-r--r-- | bin/sh/histedit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/sh/histedit.c b/bin/sh/histedit.c index 5270f60dd9f7..4c596c82257e 100644 --- a/bin/sh/histedit.c +++ b/bin/sh/histedit.c @@ -54,12 +54,12 @@ __FBSDID("$FreeBSD$"); #include "main.h" #include "output.h" #include "mystring.h" +#include "builtins.h" #ifndef NO_HISTORY #include "myhistedit.h" #include "error.h" #include "eval.h" #include "memalloc.h" -#include "builtins.h" #define MAXHISTLOOPS 4 /* max recursions through fc */ #define DEFEDITOR "ed" /* default editor *should* be $EDITOR */ @@ -503,7 +503,7 @@ bindcmd(int argc, char **argv) #include "error.h" int -histcmd(int argc, char **argv) +histcmd(int argc __unused, char **argv __unused) { error("not compiled with history support"); @@ -512,7 +512,7 @@ histcmd(int argc, char **argv) } int -bindcmd(int argc, char **argv) +bindcmd(int argc __unused, char **argv __unused) { error("not compiled with line editing support"); |