diff options
author | Bryan Drewery <bryan@shatow.net> | 2020-04-17 03:58:26 +0300 |
---|---|---|
committer | Bryan Drewery <bryan@shatow.net> | 2020-04-24 02:09:26 +0300 |
commit | a9ff670779c4e6392d32c9cc7cd963f64f926050 (patch) | |
tree | 196c7a8944298fc12c5983b542f88fdf89759f9c /external | |
parent | 84f3db84ff9be81b09ddcbb3dd3786acdc81a818 (diff) |
Fix NO_HISTORY errors
Diffstat (limited to 'external')
-rw-r--r-- | external/sh/histedit.c | 8 | ||||
-rw-r--r-- | external/sh/myhistedit.h | 6 |
2 files changed, 9 insertions, 5 deletions
diff --git a/external/sh/histedit.c b/external/sh/histedit.c index 6975334e..5d9b9750 100644 --- a/external/sh/histedit.c +++ b/external/sh/histedit.c @@ -36,7 +36,7 @@ static char sccsid[] = "@(#)histedit.c 8.2 (Berkeley) 5/4/95"; #endif #endif /* not lint */ #include <sys/cdefs.h> -__FBSDID("$FreeBSD: head/bin/sh/histedit.c 352385 2019-09-16 07:31:59Z bapt $"); +__FBSDID("$FreeBSD$"); #include <sys/param.h> #include <limits.h> @@ -54,8 +54,8 @@ __FBSDID("$FreeBSD: head/bin/sh/histedit.c 352385 2019-09-16 07:31:59Z bapt $"); #include "main.h" #include "output.h" #include "mystring.h" -#ifndef NO_HISTORY #include "myhistedit.h" +#ifndef NO_HISTORY #include "error.h" #include "eval.h" #include "memalloc.h" @@ -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"); diff --git a/external/sh/myhistedit.h b/external/sh/myhistedit.h index 3dbad7e4..5406eff4 100644 --- a/external/sh/myhistedit.h +++ b/external/sh/myhistedit.h @@ -29,7 +29,7 @@ * SUCH DAMAGE. * * @(#)myhistedit.h 8.2 (Berkeley) 5/4/95 - * $FreeBSD: head/bin/sh/myhistedit.h 326025 2017-11-20 19:49:47Z pfg $ + * $FreeBSD$ */ #include <histedit.h> @@ -42,3 +42,7 @@ void histedit(void); void sethistsize(const char *); void setterm(const char *); +#ifdef NO_HISTORY +int histcmd(int, char **); +int bindcmd(int, char **); +#endif |