Commit | Line | Data |
---|---|---|
9b71f02b JB |
1 | #include "bsd4-2.h" |
2 | ||
8a63d4ba RS |
3 | #ifndef SUNOS4 |
4 | #define SUNOS4 | |
5 | #endif | |
6 | ||
9b71f02b JB |
7 | #if 0 /* This may have been needed for an earlier version of Sun OS 4. |
8 | It seems to cause warnings in 4.0.3 and 4.1. */ | |
9 | #define O_NDELAY FNDELAY /* Non-blocking I/O (4.2 style) */ | |
10 | #endif | |
11 | ||
7e572891 RS |
12 | /* We use the Sun syntax -Bstatic unconditionally, because even when we |
13 | use GCC, these are passed through to the linker, not handled by GCC | |
14 | directly. */ | |
9b71f02b JB |
15 | #define LD_SWITCH_SYSTEM -e __start -Bstatic |
16 | ||
17 | /* In SunOS 4.1, a static function called by tzsetwall reportedly | |
18 | clears the byte just past an eight byte region it mallocs, corrupting | |
19 | GNU malloc's memory pool. But Sun's malloc doesn't seem to mind. */ | |
20 | ||
21 | #define SYSTEM_MALLOC | |
69b72824 RS |
22 | |
23 | #ifdef __GNUC__ | |
24 | /* We must define mkdir with this arg prototype | |
25 | to match GCC's fixed stat.h. */ | |
26 | #define MKDIR_PROTOTYPE \ | |
27 | int mkdir (const char *dpath, unsigned short dmode) | |
28 | #endif /* __GNUC__ */ |