summaryrefslogtreecommitdiffstats
path: root/bin/sh/parser.c
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2010-06-19 10:33:04 +0000
committerjilles <jilles@FreeBSD.org>2010-06-19 10:33:04 +0000
commit9620b35016c1ab6e3e6bf6a43a453d66514f42b4 (patch)
treef439e8f8b395a61c545ec80fd047a92748b98ee8 /bin/sh/parser.c
parent085c49ad8c037c73312b66134915f8b2832636bd (diff)
downloadFreeBSD-src-9620b35016c1ab6e3e6bf6a43a453d66514f42b4.zip
FreeBSD-src-9620b35016c1ab6e3e6bf6a43a453d66514f42b4.tar.gz
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
Diffstat (limited to 'bin/sh/parser.c')
-rw-r--r--bin/sh/parser.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/sh/parser.c b/bin/sh/parser.c
index 05015d2..d11007e 100644
--- a/bin/sh/parser.c
+++ b/bin/sh/parser.c
@@ -40,6 +40,7 @@ __FBSDID("$FreeBSD$");
#include <stdlib.h>
#include <unistd.h>
+#include <stdio.h>
#include "shell.h"
#include "parser.h"
OpenPOWER on IntegriCloud