From 88dd1b976c6ac887187d9f1c445cc5c0043b898f Mon Sep 17 00:00:00 2001 From: Fred Fish Date: Sun, 26 May 1996 22:15:47 +0000 Subject: [PATCH] * 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. --- readline/.Sanitize | 1 + readline/ChangeLog | 9 +++++++++ readline/sysdep-linux.h | 24 ++++++++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 readline/sysdep-linux.h 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 + + From: David Mosberger-Tang + + * 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 From: Miles Bader 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 +#endif +#ifndef alloca /* May be a macro, with args. */ +extern char *alloca (); +#endif +#endif + +#include /* Needed by dirent.h */ +#include + +#include +typedef struct dirent dirent; -- 2.7.4