about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2001-12-18 01:13:22 +0000
committerClint Adams <clint@users.sourceforge.net>2001-12-18 01:13:22 +0000
commit6feb3f57f4c5524f2a047d76cbcd21e84cebfd27 (patch)
treedbbc3b734a580eb44a3cb08d74570f73122f564e
parentabd901094ea047da2b7b384f74af112e8453034c (diff)
downloadzsh-6feb3f57f4c5524f2a047d76cbcd21e84cebfd27.tar.gz
zsh-6feb3f57f4c5524f2a047d76cbcd21e84cebfd27.tar.xz
zsh-6feb3f57f4c5524f2a047d76cbcd21e84cebfd27.zip
16361: include <stdio.h> to avoid implicit declarations.
-rw-r--r--ChangeLog5
-rw-r--r--Src/input.c4
-rw-r--r--zshconfig.ac2
3 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 5dc8caac3..5b810847a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-12-18  Clint Adams  <clint@zsh.org>
+
+	* 16361: zshconfig.ac, Src/input.c:
+	include <stdio.h> to avoid implicit declarations.
+
 2001-12-17  Oliver Kiddle  <opk@zsh.org>
 
 	* 16352: Functions/Misc/zcalc: allow output formats to be
diff --git a/Src/input.c b/Src/input.c
index 8f33e3631..ba01dd068 100644
--- a/Src/input.c
+++ b/Src/input.c
@@ -67,6 +67,10 @@
  * PWS 1996/12/10
  */
 
+#ifdef HAVE_STDIO_H
+#include <stdio.h>
+#endif
+
 #include "zsh.mdh"
 #include "input.pro"
 
diff --git a/zshconfig.ac b/zshconfig.ac
index 2ec80f134..8191756db 100644
--- a/zshconfig.ac
+++ b/zshconfig.ac
@@ -474,7 +474,7 @@ AC_HEADER_SYS_WAIT
 AC_CHECK_HEADERS(sys/time.h sys/times.h sys/select.h termcap.h termio.h \
 		 termios.h sys/param.h sys/filio.h string.h memory.h \
 		 limits.h fcntl.h libc.h sys/utsname.h sys/resource.h \
-		 locale.h errno.h stdlib.h unistd.h sys/capability.h \
+		 locale.h errno.h stdio.h stdlib.h unistd.h sys/capability.h \
 		 utmp.h utmpx.h sys/types.h pwd.h grp.h poll.h sys/mman.h \
 		 netinet/in_systm.h pcre.h)
 if test $dynamic = yes; then