]>
Commit | Line | Data |
---|---|---|
f04e1182 AJ |
1 | #ifndef SQUID_OS_NEXT_H |
2 | #define SQUID_OS_NEXT_H | |
3 | ||
1191b93b | 4 | #if _SQUID_NEXT_ |
f04e1182 AJ |
5 | |
6 | /**************************************************************************** | |
7 | *--------------------------------------------------------------------------* | |
8 | * DO *NOT* MAKE ANY CHANGES below here unless you know what you're doing...* | |
9 | *--------------------------------------------------------------------------* | |
10 | ****************************************************************************/ | |
11 | ||
f04e1182 AJ |
12 | /* |
13 | * Don't allow inclusion of malloc.h | |
14 | */ | |
15 | #if defined(HAVE_MALLOC_H) | |
16 | #undef HAVE_MALLOC_H | |
17 | #endif | |
18 | ||
19 | /* | |
20 | * S_ISDIR() may not be defined on Next | |
21 | */ | |
22 | #if HAVE_SYS_STAT_H | |
23 | #include <sys/stat.h> | |
24 | #endif | |
25 | #if !defined(S_ISDIR) | |
26 | #define S_ISDIR(mode) (((mode) & (_S_IFMT)) == (_S_IFDIR)) | |
27 | #endif | |
28 | ||
29 | /* | |
30 | * WAS: lots of special wrappers labeled only 'protect NEXTSTEP' | |
489520a9 AJ |
31 | * I'm assuming its an incomplete definition problem on that OS |
32 | * or a missing safety wrapper by the looks of the original hack. | |
af6a12ee | 33 | * |
f04e1182 AJ |
34 | * Anyway, this file is included before all general non-type headers. |
35 | * doing the include here for Next and undefining HAVE_NETDB_H will | |
36 | * save us from including it again in general. | |
37 | */ | |
f04e1182 AJ |
38 | #if HAVE_NETDB_H |
39 | #include <netdb.h> | |
40 | #endif | |
41 | #undef HAVE_NETDB_H | |
42 | #define HAVE_NETDB_H 0 | |
43 | ||
aff65b83 AJ |
44 | #if !defined(S_ISDIR) |
45 | #define S_ISDIR(mode) (((mode) & (_S_IFMT)) == (_S_IFDIR)) | |
46 | #endif | |
47 | ||
f04e1182 AJ |
48 | #endif /* _SQUID_NEXT_ */ |
49 | #endif /* SQUID_OS_NEXT_H */ |