From ce2387877633a091dd33498817c818ce871be0df Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Tue, 28 Jul 1998 15:44:30 +0000 Subject: * sysdep-hpux11.h: New file. * configure.in (*-*-*-hpux11*): Use sysdep-hpux11.h. --- readline/ChangeLog | 5 +++++ readline/sysdep-hpux11.h | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 readline/sysdep-hpux11.h diff --git a/readline/ChangeLog b/readline/ChangeLog index 064def65b06..b0dc78ee521 100644 --- a/readline/ChangeLog +++ b/readline/ChangeLog @@ -1,3 +1,8 @@ +Tue Jul 28 09:43:27 1998 Jeffrey A Law (law@cygnus.com) + + * sysdep-hpux11.h: New file. + * configure.in (*-*-*-hpux11*): Use sysdep-hpux11.h. + Thu Jul 23 17:48:21 1998 Ian Lance Taylor * configure.bat: Remove obsolete file. diff --git a/readline/sysdep-hpux11.h b/readline/sysdep-hpux11.h new file mode 100644 index 00000000000..da8a86493bf --- /dev/null +++ b/readline/sysdep-hpux11.h @@ -0,0 +1,40 @@ +/* System-dependent stuff, for hpux11 systems */ +/* If you think you need to change this file, then you are wrong. In order to + avoid a huge ugly mass of nested #ifdefs, you should create a new file just + for your system, which contains exactly those #includes and definitions that + your system needs, AND NOTHING MORE! Then, add that file to the appropriate + place in configure.in, and viola, you are done. sysdep-sunos4.h is a good + example of how to do this. */ + +#ifdef __GNUC__ +#define alloca __builtin_alloca +#else +#include +#ifndef alloca /* May be a macro, with args. */ +extern char *alloca (); +#endif +#endif + +#include /* Needed by dirent.h */ + +#if defined (USG) && defined (TIOCGWINSZ) +#include +#if defined (USGr4) || defined (USGr3) +#include +#endif /* USGr4 */ +#endif /* USG && TIOCGWINSZ */ + +#ifndef _WIN32 +#include +typedef struct dirent dirent; +#endif + +/* SVR4 systems should use rather than . */ + +#if defined (USGr4) +#define _POSIX_VERSION +#endif + +#if defined _WIN32 && !defined __GNUC__ +#include +#endif -- cgit v1.2.1