aboutsummaryrefslogtreecommitdiff
path: root/readline/sysdep-linux.h
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/sysdep-linux.h
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/sysdep-linux.h')
-rw-r--r--readline/sysdep-linux.h24
1 files changed, 24 insertions, 0 deletions
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;