Blame SOURCES/ksh-20120801-covsfix2.patch

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