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:
Jilles Tjoelker 2010-06-19 10:33:04 +00:00
parent bcc4111272
commit 49e10f5e38
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=209337

View File

@ -40,6 +40,7 @@ __FBSDID("$FreeBSD$");
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include "shell.h"
#include "parser.h"