aboutsummaryrefslogtreecommitdiff
path: root/readline
diff options
context:
space:
mode:
Diffstat (limited to 'readline')
-rw-r--r--readline/sysdep-aix.h2
-rw-r--r--readline/sysdep-norm.h10
2 files changed, 12 insertions, 0 deletions
diff --git a/readline/sysdep-aix.h b/readline/sysdep-aix.h
index 9d7bfc5..4487c8c 100644
--- a/readline/sysdep-aix.h
+++ b/readline/sysdep-aix.h
@@ -1,3 +1,5 @@
/* System-dependent stuff for AIX 3.1 on RS/6000 */
#pragma alloca
+#include <dirent.h>
+typedef struct dirent dirent;
diff --git a/readline/sysdep-norm.h b/readline/sysdep-norm.h
index e96e431..d091c4a 100644
--- a/readline/sysdep-norm.h
+++ b/readline/sysdep-norm.h
@@ -9,3 +9,13 @@
extern char *alloca ();
#endif
#endif
+
+#if defined (USG) && defined (TIOCGWINSZ)
+#include <sys/stream.h>
+#if defined (USGr4) || defined (USGr3)
+#include <sys/ptem.h>
+#endif /* USGr4 */
+#endif /* USG && TIOCGWINSZ */
+
+#include <dirent.h>
+typedef struct dirent dirent;