1991-11-09 19:24:32 +08:00
|
|
|
/* System-dependent stuff, for ``normal'' systems */
|
1992-11-05 07:34:54 +08:00
|
|
|
/* 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. */
|
1991-11-09 19:24:32 +08:00
|
|
|
|
|
|
|
#ifdef __GNUC__
|
|
|
|
#define alloca __builtin_alloca
|
|
|
|
#else
|
|
|
|
#if defined (sparc) && defined (sun)
|
|
|
|
#include <alloca.h>
|
|
|
|
#endif
|
1992-06-24 13:00:25 +08:00
|
|
|
#ifndef alloca /* May be a macro, with args. */
|
1991-11-23 01:07:42 +08:00
|
|
|
extern char *alloca ();
|
1991-11-09 19:24:32 +08:00
|
|
|
#endif
|
1992-06-24 13:00:25 +08:00
|
|
|
#endif
|
1991-11-22 06:50:49 +08:00
|
|
|
|
1991-11-23 01:07:42 +08:00
|
|
|
#include <sys/types.h> /* Needed by dirent.h */
|
|
|
|
|
1991-11-22 06:50:49 +08:00
|
|
|
#if defined (USG) && defined (TIOCGWINSZ)
|
|
|
|
#include <sys/stream.h>
|
|
|
|
#if defined (USGr4) || defined (USGr3)
|
|
|
|
#include <sys/ptem.h>
|
|
|
|
#endif /* USGr4 */
|
|
|
|
#endif /* USG && TIOCGWINSZ */
|
|
|
|
|
|
|
|
#include <dirent.h>
|
|
|
|
typedef struct dirent dirent;
|
1992-02-18 09:20:46 +08:00
|
|
|
|
|
|
|
/* SVR4 systems should use <termios.h> rather than <termio.h>. */
|
|
|
|
|
|
|
|
#if defined (USGr4)
|
|
|
|
#define _POSIX_VERSION
|
|
|
|
#endif
|