Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: explicit declaration of fseek, ftell



../../Src/input.c:413: warning: implicit declaration of function
`fseeko'
../../Src/input.c:414: warning: implicit declaration of function
`ftello'

Index: zshconfig.ac
===================================================================
RCS file: /cvsroot/zsh/zsh/zshconfig.ac,v
retrieving revision 1.22
diff -u -r1.22 zshconfig.ac
--- zshconfig.ac	2001/12/15 17:33:12	1.22
+++ zshconfig.ac	2001/12/18 01:09:49
@@ -474,7 +474,7 @@
 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
Index: Src/input.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/input.c,v
retrieving revision 1.4
diff -u -r1.4 input.c
--- Src/input.c	2001/01/16 13:44:20	1.4
+++ Src/input.c	2001/12/18 01:09:50
@@ -67,6 +67,10 @@
  * PWS 1996/12/10
  */
 
+#ifdef HAVE_STDIO_H
+#include <stdio.h>
+#endif
+
 #include "zsh.mdh"
 #include "input.pro"
 



Messages sorted by: Reverse Date, Date, Thread, Author