Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Jun 2010 10:33:05 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r209337 - head/bin/sh
Message-ID:  <201006191033.o5JAX55M054643@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006191033.o5JAX55M054643>