Commit | Line | Data |
---|---|---|
51493cdb | 1 | /* System-dependent stuff, for ``normal'' systems */ |
da60a50d SG |
2 | /* If you think you need to change this file, then you are wrong. In order to |
3 | avoid a huge ugly mass of nested #ifdefs, you should create a new file just | |
4 | for your system, which contains exactly those #includes and definitions that | |
5 | your system needs, AND NOTHING MORE! Then, add that file to the appropriate | |
6 | place in configure.in, and viola, you are done. sysdep-sunos4.h is a good | |
7 | example of how to do this. */ | |
51493cdb JG |
8 | |
9 | #ifdef __GNUC__ | |
10 | #define alloca __builtin_alloca | |
11 | #else | |
12 | #if defined (sparc) && defined (sun) | |
13 | #include <alloca.h> | |
51493cdb | 14 | #endif |
56e5eadc | 15 | #ifndef alloca /* May be a macro, with args. */ |
3f73352f | 16 | extern char *alloca (); |
51493cdb | 17 | #endif |
56e5eadc | 18 | #endif |
56858b95 | 19 | |
3f73352f JG |
20 | #include <sys/types.h> /* Needed by dirent.h */ |
21 | ||
56858b95 SG |
22 | #if defined (USG) && defined (TIOCGWINSZ) |
23 | #include <sys/stream.h> | |
24 | #if defined (USGr4) || defined (USGr3) | |
25 | #include <sys/ptem.h> | |
26 | #endif /* USGr4 */ | |
27 | #endif /* USG && TIOCGWINSZ */ | |
28 | ||
29 | #include <dirent.h> | |
30 | typedef struct dirent dirent; | |
5bb14552 FF |
31 | |
32 | /* SVR4 systems should use <termios.h> rather than <termio.h>. */ | |
33 | ||
34 | #if defined (USGr4) | |
35 | #define _POSIX_VERSION | |
36 | #endif |