Fix warning generated under AIX 4.1.4
This commit is contained in:
parent
091221ceea
commit
9e9cf21fec
|
@ -1,3 +1,9 @@
|
||||||
|
Thu Jul 18 15:59:35 1996 Michael Meissner <meissner@tiktok.cygnus.com>
|
||||||
|
|
||||||
|
* rldefs.h (sys/uio.h) Before sys/stream.h is included under AIX,
|
||||||
|
include sys/uio.h, which prevents an undefined structure used in a
|
||||||
|
prototype message from being generated.
|
||||||
|
|
||||||
Tue Jun 25 23:05:55 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
|
Tue Jun 25 23:05:55 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
|
||||||
|
|
||||||
* Makefile.in (datadir): Set to $(prefix)/share.
|
* Makefile.in (datadir): Set to $(prefix)/share.
|
||||||
|
|
|
@ -35,13 +35,17 @@
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#define NEW_TTY_DRIVER
|
#define NEW_TTY_DRIVER
|
||||||
#define HAVE_BSD_SIGNALS
|
#define HAVE_BSD_SIGNALS
|
||||||
/* #define USE_XON_XOFF */
|
/* #define USE_XON_XOFF */
|
||||||
|
|
||||||
#ifdef __MSDOS__
|
#if defined(__MSDOS__) || defined(_MSC_VER)
|
||||||
|
#define NO_SYS_FILE
|
||||||
|
#define SIGALRM 1234
|
||||||
#undef NEW_TTY_DRIVER
|
#undef NEW_TTY_DRIVER
|
||||||
#undef HAVE_BSD_SIGNALS
|
#undef HAVE_BSD_SIGNALS
|
||||||
|
#define MINIMAL
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined (__linux__)
|
#if defined (__linux__)
|
||||||
|
@ -54,6 +58,16 @@
|
||||||
# undef HAVE_BSD_SIGNALS
|
# undef HAVE_BSD_SIGNALS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined (__WIN32__) && !defined(_MSC_VER)
|
||||||
|
#undef NEW_TTY_DRIVER
|
||||||
|
#define MINIMAL
|
||||||
|
#undef HAVE_BSD_SIGNALS
|
||||||
|
#define TERMIOS_TTY_DRIVER
|
||||||
|
#undef HANDLE_SIGNALS
|
||||||
|
#include <termios.h>
|
||||||
|
/*#define HAVE_POSIX_SIGNALS*/
|
||||||
|
#endif
|
||||||
|
|
||||||
/* System V machines use termio. */
|
/* System V machines use termio. */
|
||||||
#if !defined (_POSIX_VERSION)
|
#if !defined (_POSIX_VERSION)
|
||||||
/* CYGNUS LOCAL accept __hpux as well as hpux for HP compiler in ANSI mode. */
|
/* CYGNUS LOCAL accept __hpux as well as hpux for HP compiler in ANSI mode. */
|
||||||
|
@ -137,6 +151,12 @@
|
||||||
#endif /* !1 */
|
#endif /* !1 */
|
||||||
|
|
||||||
#if defined (USG) && defined (TIOCGWINSZ) && !defined (Linux)
|
#if defined (USG) && defined (TIOCGWINSZ) && !defined (Linux)
|
||||||
|
# if defined (_AIX)
|
||||||
|
/* AIX 4.x seems to reference struct uio within a prototype
|
||||||
|
in stream.h, but doesn't cause the uio include file to
|
||||||
|
be included. */
|
||||||
|
# include <sys/uio.h>
|
||||||
|
# endif
|
||||||
# include <sys/stream.h>
|
# include <sys/stream.h>
|
||||||
# if defined (HAVE_SYS_PTEM_H)
|
# if defined (HAVE_SYS_PTEM_H)
|
||||||
# include <sys/ptem.h>
|
# include <sys/ptem.h>
|
||||||
|
@ -151,6 +171,11 @@
|
||||||
#if defined (S_IFDIR) && !defined (S_ISDIR)
|
#if defined (S_IFDIR) && !defined (S_ISDIR)
|
||||||
#define S_ISDIR(m) (((m)&S_IFMT) == S_IFDIR)
|
#define S_ISDIR(m) (((m)&S_IFMT) == S_IFDIR)
|
||||||
#endif
|
#endif
|
||||||
|
/* Posix macro to check file in statbuf for file-ness.
|
||||||
|
This requires that <sys/stat.h> be included before this test. */
|
||||||
|
#if defined (S_IFREG) && !defined (S_ISREG)
|
||||||
|
#define S_ISREG(m) (((m)&S_IFMT) == S_IFREG)
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined (strchr) && !defined (__STDC__)
|
#if !defined (strchr) && !defined (__STDC__)
|
||||||
extern char *strchr (), *strrchr ();
|
extern char *strchr (), *strrchr ();
|
||||||
|
@ -164,6 +189,11 @@ extern char *strchr (), *strrchr ();
|
||||||
/* If on, then readline handles signals in a way that doesn't screw. */
|
/* If on, then readline handles signals in a way that doesn't screw. */
|
||||||
#define HANDLE_SIGNALS
|
#define HANDLE_SIGNALS
|
||||||
|
|
||||||
|
#if defined(__WIN32__) || defined(__MSDOS__)
|
||||||
|
#undef HANDLE_SIGNALS
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#if !defined (emacs_mode)
|
#if !defined (emacs_mode)
|
||||||
# define no_mode -1
|
# define no_mode -1
|
||||||
# define vi_mode 0
|
# define vi_mode 0
|
||||||
|
@ -233,5 +263,16 @@ extern char *strchr (), *strrchr ();
|
||||||
#endif /* HAVE_BSD_SIGNALS */
|
#endif /* HAVE_BSD_SIGNALS */
|
||||||
#endif /* HAVE_POSIX_SIGNALS */
|
#endif /* HAVE_POSIX_SIGNALS */
|
||||||
|
|
||||||
|
#if !defined (strchr)
|
||||||
|
extern char *strchr ();
|
||||||
|
#endif
|
||||||
|
#if !defined (strrchr)
|
||||||
|
extern char *strrchr ();
|
||||||
|
#endif
|
||||||
|
#ifdef __STDC__
|
||||||
|
#include <stddef.h>
|
||||||
|
extern size_t strlen (const char *s);
|
||||||
|
#endif /* __STDC__ */
|
||||||
|
|
||||||
/* End of signal handling definitions. */
|
/* End of signal handling definitions. */
|
||||||
#endif /* !_RLDEFS_H */
|
#endif /* !_RLDEFS_H */
|
||||||
|
|
Loading…
Reference in New Issue