Skip to content

Commit

Permalink
sh: Avoid some headers when NO_HISTORY is set.
Browse files Browse the repository at this point in the history
This is more simpler compatibility with using this source on older
systems before libedit was made to install filecomplete.h in
commit b315a72.
  • Loading branch information
bdrewery committed Nov 25, 2021
1 parent e8e8d22 commit 971677d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/sh/input.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 2 additions & 0 deletions bin/sh/trap.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ __FBSDID("$FreeBSD$");
#include "trap.h"
#include "mystring.h"
#include "builtins.h"
#ifndef NO_HISTORY
#include "myhistedit.h"
#endif


/*
Expand Down

0 comments on commit 971677d

Please sign in to comment.