Blame SOURCES/ksh-20120801-covsfix2.patch

ff22b9
diff --git a/src/cmd/ksh93/edit/edit.c b/src/cmd/ksh93/edit/edit.c
ff22b9
--- a/src/cmd/ksh93/edit/edit.c
ff22b9
+++ b/src/cmd/ksh93/edit/edit.c
ff22b9
@@ -46,6 +46,8 @@
ff22b9
     extern char ed_errbuf[];
ff22b9
     char e_version[] = "\n@(#)$Id: Editlib version 1993-12-28 r $\0\n";
ff22b9
 #endif	/* KSHELL */
ff22b9
+
ff22b9
+#include <sys/ioctl.h>
ff22b9
 #include	"io.h"
ff22b9
 #include	"terminal.h"
ff22b9
 #include	"history.h"
ff22b9
diff --git a/src/cmd/ksh93/include/defs.h b/src/cmd/ksh93/include/defs.h
ff22b9
--- a/src/cmd/ksh93/include/defs.h
ff22b9
+++ b/src/cmd/ksh93/include/defs.h
ff22b9
@@ -449,6 +449,8 @@ extern int 		sh_whence(char**,int);
ff22b9
     extern Namval_t	*sh_fsearch(Shell_t*,const char *,int);
ff22b9
 #endif /* SHOPT_NAMESPACE */
ff22b9
 
ff22b9
+extern int sh_diropenat(Shell_t *, int, const char *, bool xattr);
ff22b9
+
ff22b9
 #ifndef ERROR_dictionary
ff22b9
 #   define ERROR_dictionary(s)	(s)
ff22b9
 #endif
ff22b9
diff --git a/src/lib/libast/port/astwinsize.c b/src/lib/libast/port/astwinsize.c
ff22b9
--- a/src/lib/libast/port/astwinsize.c
ff22b9
+++ b/src/lib/libast/port/astwinsize.c
ff22b9
@@ -28,6 +28,7 @@
ff22b9
 
ff22b9
 #include <ast.h>
ff22b9
 #include <ast_tty.h>
ff22b9
+#include <sys/ioctl.h>
ff22b9
 
ff22b9
 #if defined(__STDPP__directive) && defined(__STDPP__hide)
ff22b9
 __STDPP__directive pragma pp:hide ioctl sleep
ff22b9
@@ -36,10 +37,6 @@ __STDPP__directive pragma pp:hide ioctl sleep
ff22b9
 #define sleep		______sleep
ff22b9
 #endif
ff22b9
 
ff22b9
-#if _sys_ioctl
ff22b9
-#include <sys/ioctl.h>
ff22b9
-#endif
ff22b9
-
ff22b9
 #if defined(TIOCGWINSZ)
ff22b9
 #if _sys_stream && _sys_ptem
ff22b9
 #include <sys/stream.h>
ff22b9
diff --git a/src/lib/libcmd/tail.c b/src/lib/libcmd/tail.c
ff22b9
--- a/src/lib/libcmd/tail.c
ff22b9
+++ b/src/lib/libcmd/tail.c
ff22b9
@@ -104,6 +104,7 @@ USAGE_LICENSE
ff22b9
 #include <ls.h>
ff22b9
 #include <tv.h>
ff22b9
 #include <rev.h>
ff22b9
+#include <time.h>
ff22b9
 
ff22b9
 #define COUNT		(1<<0)
ff22b9
 #define ERROR		(1<<1)