diff options
author | Fred Fish <fnf@specifix.com> | 1993-03-03 05:52:32 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1993-03-03 05:52:32 +0000 |
commit | d6400b148d23ed20a23b8c474b2e8263c36ddab9 (patch) | |
tree | 60e9e86e5f997b8194094e662fe51a78c44b419e /readline/sysdep-sysv4.h | |
parent | 4acdfbb0b1a301b0c2fc9050ac736e5960aa9889 (diff) | |
download | gdb-d6400b148d23ed20a23b8c474b2e8263c36ddab9.zip gdb-d6400b148d23ed20a23b8c474b2e8263c36ddab9.tar.gz gdb-d6400b148d23ed20a23b8c474b2e8263c36ddab9.tar.bz2 |
* 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)
Diffstat (limited to 'readline/sysdep-sysv4.h')
-rw-r--r-- | readline/sysdep-sysv4.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/readline/sysdep-sysv4.h b/readline/sysdep-sysv4.h new file mode 100644 index 0000000..558492f --- /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 <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 <sys/stream.h> +#include <sys/ptem.h> +#include <dirent.h> +typedef struct dirent dirent; + +/* SVR4 systems should use <termios.h> rather than <termio.h>. */ +#define _POSIX_VERSION + +/* SVR4 systems need _POSIX_SOURCE defined to suppress 'struct winsize' + definition in <termios.h>, since it's unconditionally defined in + <sys/ptem.h>. */ +#define _POSIX_SOURCE |