svn commit: r209676 - stable/8/bin/sh
Jilles Tjoelker
jilles at FreeBSD.org
Sat Jul 3 21:31:06 UTC 2010
Author: jilles
Date: Sat Jul 3 21:31:05 2010
New Revision: 209676
URL: http://svn.freebsd.org/changeset/base/209676
Log:
MFC r209337: 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.
Modified:
stable/8/bin/sh/parser.c
Directory Properties:
stable/8/bin/sh/ (props changed)
Modified: stable/8/bin/sh/parser.c
==============================================================================
--- stable/8/bin/sh/parser.c Sat Jul 3 21:06:48 2010 (r209675)
+++ stable/8/bin/sh/parser.c Sat Jul 3 21:31:05 2010 (r209676)
@@ -40,6 +40,7 @@ __FBSDID("$FreeBSD$");
#include <stdlib.h>
#include <unistd.h>
+#include <stdio.h>
#include "shell.h"
#include "parser.h"
More information about the svn-src-stable-8
mailing list