Date: Sat, 3 Jul 2010 21:31:05 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r209676 - stable/8/bin/sh Message-ID: <201007032131.o63LV5PT030947@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007032131.o63LV5PT030947>