Fix build with NO_HISTORY set
Reviewed by: jilles Differential Revision: https://reviews.freebsd.org/D24458
This commit is contained in:
parent
ee2e9f4dbc
commit
6c346639ba
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=360139
@ -54,12 +54,12 @@ __FBSDID("$FreeBSD$");
|
|||||||
#include "main.h"
|
#include "main.h"
|
||||||
#include "output.h"
|
#include "output.h"
|
||||||
#include "mystring.h"
|
#include "mystring.h"
|
||||||
|
#include "builtins.h"
|
||||||
#ifndef NO_HISTORY
|
#ifndef NO_HISTORY
|
||||||
#include "myhistedit.h"
|
#include "myhistedit.h"
|
||||||
#include "error.h"
|
#include "error.h"
|
||||||
#include "eval.h"
|
#include "eval.h"
|
||||||
#include "memalloc.h"
|
#include "memalloc.h"
|
||||||
#include "builtins.h"
|
|
||||||
|
|
||||||
#define MAXHISTLOOPS 4 /* max recursions through fc */
|
#define MAXHISTLOOPS 4 /* max recursions through fc */
|
||||||
#define DEFEDITOR "ed" /* default editor *should* be $EDITOR */
|
#define DEFEDITOR "ed" /* default editor *should* be $EDITOR */
|
||||||
@ -503,7 +503,7 @@ bindcmd(int argc, char **argv)
|
|||||||
#include "error.h"
|
#include "error.h"
|
||||||
|
|
||||||
int
|
int
|
||||||
histcmd(int argc, char **argv)
|
histcmd(int argc __unused, char **argv __unused)
|
||||||
{
|
{
|
||||||
|
|
||||||
error("not compiled with history support");
|
error("not compiled with history support");
|
||||||
@ -512,7 +512,7 @@ histcmd(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
bindcmd(int argc, char **argv)
|
bindcmd(int argc __unused, char **argv __unused)
|
||||||
{
|
{
|
||||||
|
|
||||||
error("not compiled with line editing support");
|
error("not compiled with line editing support");
|
||||||
|
Loading…
Reference in New Issue
Block a user