sh: Avoid some headers when NO_HISTORY is set.

This is more simpler compatibility with using this source on older
systems before libedit was made to install filecomplete.h in
commit b315a7296d.
This commit is contained in:
Bryan Drewery 2021-11-24 17:52:11 -08:00
parent e8e8d2290e
commit 971677d5fd
2 changed files with 4 additions and 0 deletions

View File

@ -59,7 +59,9 @@ __FBSDID("$FreeBSD$");
#include "error.h"
#include "alias.h"
#include "parser.h"
#ifndef NO_HISTORY
#include "myhistedit.h"
#endif
#include "trap.h"
#define EOF_NLEFT -99 /* value of parsenleft when EOF pushed back */

View File

@ -58,7 +58,9 @@ __FBSDID("$FreeBSD$");
#include "trap.h"
#include "mystring.h"
#include "builtins.h"
#ifndef NO_HISTORY
#include "myhistedit.h"
#endif
/*