svn commit: r209337 - head/bin/sh

Jilles Tjoelker jilles at FreeBSD.org
Sat Jun 19 10:33:05 UTC 2010


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"


More information about the svn-src-all mailing list