sh: Fix compilation with -DNO_HISTORY.
The LINENO code uses snprintf() and relied on "myhistedit.h" to pull in the necessary <stdio.h>. Compiling with -DNO_HISTORY disables all editing and history support and allows linking without -ledit -ltermcap. This may be useful for embedded systems. MFC after: 2 weeks
This commit is contained in:
parent
bcc4111272
commit
49e10f5e38
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=209337
@ -40,6 +40,7 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "shell.h"
|
||||
#include "parser.h"
|
||||
|
Loading…
Reference in New Issue
Block a user