aboutsummaryrefslogtreecommitdiff
path: root/readline
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1996-05-26 22:15:47 +0000
committerFred Fish <fnf@specifix.com>1996-05-26 22:15:47 +0000
commit88dd1b976c6ac887187d9f1c445cc5c0043b898f (patch)
treecbb9bad36e22aced64f9e68f883899ede248f1e0 /readline
parent878bd838c03211cbb9888727b6f32fc8e96b45d6 (diff)
downloadgdb-88dd1b976c6ac887187d9f1c445cc5c0043b898f.zip
gdb-88dd1b976c6ac887187d9f1c445cc5c0043b898f.tar.gz
gdb-88dd1b976c6ac887187d9f1c445cc5c0043b898f.tar.bz2
* sysdep-linux.h: New file.
* display.c: Add include of "sysdep.h" to get HAVE_VARARGS_H. * configure.in: Change pattern i[345]86-*-linux* into *-*-linux* to support non-x86 based Linux platforms.
Diffstat (limited to 'readline')
-rw-r--r--readline/.Sanitize1
-rw-r--r--readline/ChangeLog9
-rw-r--r--readline/sysdep-linux.h24
3 files changed, 34 insertions, 0 deletions
diff --git a/readline/.Sanitize b/readline/.Sanitize
index 675b821..cfdbe54 100644
--- a/readline/.Sanitize
+++ b/readline/.Sanitize
@@ -52,6 +52,7 @@ signals.c
sysdep-aix.h
sysdep-cxux7.h
sysdep-irix.h
+sysdep-linux.h
sysdep-norm.h
sysdep-obsd.h
sysdep-sco.h
diff --git a/readline/ChangeLog b/readline/ChangeLog
index 1c8b778..fd53e94 100644
--- a/readline/ChangeLog
+++ b/readline/ChangeLog
@@ -1,3 +1,12 @@
+Sun May 26 15:14:42 1996 Fred Fish <fnf@cygnus.com>
+
+ From: David Mosberger-Tang <davidm@azstarnet.com>
+
+ * sysdep-linux.h: New file.
+ * display.c: Add include of "sysdep.h" to get HAVE_VARARGS_H.
+ * configure.in: Change pattern i[345]86-*-linux* into *-*-linux* to
+ support non-x86 based Linux platforms.
+
Sun Apr 7 22:06:11 1996 Fred Fish <fnf@cygnus.com>
From: Miles Bader <miles@gnu.ai.mit.edu>
diff --git a/readline/sysdep-linux.h b/readline/sysdep-linux.h
new file mode 100644
index 0000000..46ea5d4
--- /dev/null
+++ b/readline/sysdep-linux.h
@@ -0,0 +1,24 @@
+/* System-dependent stuff, for Linux systems. Known to be good for
+ Linux/Alpha, but should work for all other platforms, too. */
+
+/*
+ * This is important on Linux/Alpha where sizeof(void*) != sizeof(int).
+ */
+#define HAVE_VARARGS_H
+
+#ifdef __GNUC__
+#define alloca __builtin_alloca
+#else
+#if defined (sparc) && defined (sun)
+#include <alloca.h>
+#endif
+#ifndef alloca /* May be a macro, with args. */
+extern char *alloca ();
+#endif
+#endif
+
+#include <sys/types.h> /* Needed by dirent.h */
+#include <string.h>
+
+#include <dirent.h>
+typedef struct dirent dirent;