* sysdep-hpux11.h: New file.

* configure.in (*-*-*-hpux11*): Use sysdep-hpux11.h.
This commit is contained in:
Jeff Law 1998-07-28 15:44:30 +00:00
parent f6b7bfcfa0
commit ce23878776
2 changed files with 45 additions and 0 deletions

View File

@ -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 <ian@cygnus.com>
* configure.bat: Remove obsolete file.

40
readline/sysdep-hpux11.h Normal file
View File

@ -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 <alloca.h>
#ifndef alloca /* May be a macro, with args. */
extern char *alloca ();
#endif
#endif
#include <sys/types.h> /* Needed by dirent.h */
#if defined (USG) && defined (TIOCGWINSZ)
#include <sys/stream.h>
#if defined (USGr4) || defined (USGr3)
#include <sys/ptem.h>
#endif /* USGr4 */
#endif /* USG && TIOCGWINSZ */
#ifndef _WIN32
#include <dirent.h>
typedef struct dirent dirent;
#endif
/* SVR4 systems should use <termios.h> rather than <termio.h>. */
#if defined (USGr4)
#define _POSIX_VERSION
#endif
#if defined _WIN32 && !defined __GNUC__
#include <malloc.h>
#endif