Blame SOURCES/ksh-20120801-covsfix2.patch

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