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