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 | ||
46b6fdbd | 29 | #ifndef _WIN32 |
56858b95 SG |
30 | #include <dirent.h> |
31 | typedef struct dirent dirent; | |
46b6fdbd | 32 | #endif |
5bb14552 FF |
33 | |
34 | /* SVR4 systems should use <termios.h> rather than <termio.h>. */ | |
35 | ||
36 | #if defined (USGr4) | |
37 | #define _POSIX_VERSION | |
38 | #endif | |
46b6fdbd | 39 | |
8633ce7a | 40 | #if defined _WIN32 && !defined __GNUC__ |
46b6fdbd SG |
41 | #include <malloc.h> |
42 | #endif |