From d6400b148d23ed20a23b8c474b2e8263c36ddab9 Mon Sep 17 00:00:00 2001 From: Fred Fish Date: Wed, 3 Mar 1993 05:52:32 +0000 Subject: [PATCH] * sysdep-sysv4.h: New file for SVR4. * configure.in (*-*-sysv4*): Use sysdep-sysv4.h. * configure.in (*-*-ultrix2): Add triplet from Michael Rendell (michael@mercury.cs.mun.ca) --- readline/.Sanitize | 1 + readline/ChangeLog | 8 ++++++++ readline/sysdep-sysv4.h | 26 ++++++++++++++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 readline/sysdep-sysv4.h diff --git a/readline/.Sanitize b/readline/.Sanitize index 7a5a7f1dec..0599ebd714 100644 --- a/readline/.Sanitize +++ b/readline/.Sanitize @@ -48,6 +48,7 @@ sysdep-irix.h sysdep-norm.h sysdep-obsd.h sysdep-sco.h +sysdep-sysv4.h vi_keymap.c vi_mode.c diff --git a/readline/ChangeLog b/readline/ChangeLog index 21ac9a48fe..445df76e5d 100644 --- a/readline/ChangeLog +++ b/readline/ChangeLog @@ -1,3 +1,11 @@ +Tue Mar 2 21:25:36 1993 Fred Fish (fnf@cygnus.com) + + * sysdep-sysv4.h: New file for SVR4. + * configure.in (*-*-sysv4*): Use sysdep-sysv4.h. + + * configure.in (*-*-ultrix2): Add triplet from Michael Rendell + (michael@mercury.cs.mun.ca) + Tue Dec 15 12:38:16 1992 Ian Lance Taylor (ian@cygnus.com) * configure.in (i[34]86-*-sco3.2v4*): use mh-sco4. diff --git a/readline/sysdep-sysv4.h b/readline/sysdep-sysv4.h new file mode 100644 index 0000000000..558492f304 --- /dev/null +++ b/readline/sysdep-sysv4.h @@ -0,0 +1,26 @@ +/* System-dependent stuff, for SVR4 systems */ + +#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 +#include +typedef struct dirent dirent; + +/* SVR4 systems should use rather than . */ +#define _POSIX_VERSION + +/* SVR4 systems need _POSIX_SOURCE defined to suppress 'struct winsize' + definition in , since it's unconditionally defined in + . */ +#define _POSIX_SOURCE