Author: jilles Date: Sat Jun 19 10:33:04 2010 New Revision: 209337 URL: http://svn.freebsd.org/changeset/base/209337
Log: 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 Modified: head/bin/sh/parser.c Modified: head/bin/sh/parser.c ============================================================================== --- head/bin/sh/parser.c Sat Jun 19 10:23:23 2010 (r209336) +++ head/bin/sh/parser.c Sat Jun 19 10:33:04 2010 (r209337) @@ -40,6 +40,7 @@ __FBSDID("$FreeBSD$"); #include <stdlib.h> #include <unistd.h> +#include <stdio.h> #include "shell.h" #include "parser.h" _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"