]> git.ipfire.org Git - thirdparty/squid.git/blob - compat/os/next.h
Merged from parent (trunk r11623, v3.2.0.10+).
[thirdparty/squid.git] / compat / os / next.h
1 #ifndef SQUID_OS_NEXT_H
2 #define SQUID_OS_NEXT_H
3
4 #if _SQUID_NEXT_
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'
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.
34 *
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 */
39 #if HAVE_NETDB_H
40 #include <netdb.h>
41 #endif
42 #undef HAVE_NETDB_H
43 #define HAVE_NETDB_H 0
44
45 #endif /* _SQUID_NEXT_ */
46 #endif /* SQUID_OS_NEXT_H */