aboutsummaryrefslogtreecommitdiff
path: root/readline
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-11-22 17:07:42 +0000
committerJohn Gilmore <gnu@cygnus>1991-11-22 17:07:42 +0000
commit3f73352f9061aff935a4dd2a693d877747edea53 (patch)
treead28e198b2b127379c0c23238857de99ba3718c5 /readline
parentde0da6cee0e05e46c0d0ffd1a56028038cd5987e (diff)
downloadgdb-3f73352f9061aff935a4dd2a693d877747edea53.zip
gdb-3f73352f9061aff935a4dd2a693d877747edea53.tar.gz
gdb-3f73352f9061aff935a4dd2a693d877747edea53.tar.bz2
<sys/types.h> is required for <dirent.h>. Improve Sun alloca.
Diffstat (limited to 'readline')
-rw-r--r--readline/ChangeLog5
-rw-r--r--readline/sysdep-aix.h1
-rwxr-xr-xreadline/sysdep-newsos.h2
-rw-r--r--readline/sysdep-norm.h5
-rwxr-xr-xreadline/sysdep-oldbsd.h2
5 files changed, 11 insertions, 4 deletions
diff --git a/readline/ChangeLog b/readline/ChangeLog
index 5191241..4cb89fa 100644
--- a/readline/ChangeLog
+++ b/readline/ChangeLog
@@ -1,3 +1,8 @@
+Fri Nov 22 09:02:32 1991 John Gilmore (gnu at cygnus.com)
+
+ * sysdep-norm.h, sysdep-aix.h: Add <sys/types.h>, which POSIX
+ requires to make <dirent.h> work. Improve Sun alloca decl.
+
Thu Nov 21 18:48:08 1991 John Gilmore (gnu at cygnus.com)
* Makefile.in: Clean up ../glob/tilde.c -> tilde.o path.
diff --git a/readline/sysdep-aix.h b/readline/sysdep-aix.h
index 4487c8c..40c983a 100644
--- a/readline/sysdep-aix.h
+++ b/readline/sysdep-aix.h
@@ -1,5 +1,6 @@
/* System-dependent stuff for AIX 3.1 on RS/6000 */
#pragma alloca
+#include <sys/types.h>
#include <dirent.h>
typedef struct dirent dirent;
diff --git a/readline/sysdep-newsos.h b/readline/sysdep-newsos.h
index 96078a2..dbed762 100755
--- a/readline/sysdep-newsos.h
+++ b/readline/sysdep-newsos.h
@@ -1,4 +1,4 @@
-/* System-dependent stuff, for ``normal'' systems */
+/* System-dependent stuff, for Sony NEwS systems */
#ifdef __GNUC__
#define alloca __builtin_alloca
diff --git a/readline/sysdep-norm.h b/readline/sysdep-norm.h
index d091c4a..0986659 100644
--- a/readline/sysdep-norm.h
+++ b/readline/sysdep-norm.h
@@ -5,11 +5,12 @@
#else
#if defined (sparc) && defined (sun)
#include <alloca.h>
-#else
-extern char *alloca ();
#endif
+extern char *alloca ();
#endif
+#include <sys/types.h> /* Needed by dirent.h */
+
#if defined (USG) && defined (TIOCGWINSZ)
#include <sys/stream.h>
#if defined (USGr4) || defined (USGr3)
diff --git a/readline/sysdep-oldbsd.h b/readline/sysdep-oldbsd.h
index 96078a2..dbed762 100755
--- a/readline/sysdep-oldbsd.h
+++ b/readline/sysdep-oldbsd.h
@@ -1,4 +1,4 @@
-/* System-dependent stuff, for ``normal'' systems */
+/* System-dependent stuff, for Sony NEwS systems */
#ifdef __GNUC__
#define alloca __builtin_alloca