]> git.ipfire.org Git - thirdparty/squid.git/blob - compat/os/next.h
SourceFormat Enforcement
[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 * 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'
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.
33 *
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 */
38 #if HAVE_NETDB_H
39 #include <netdb.h>
40 #endif
41 #undef HAVE_NETDB_H
42 #define HAVE_NETDB_H 0
43
44 #if !defined(S_ISDIR)
45 #define S_ISDIR(mode) (((mode) & (_S_IFMT)) == (_S_IFDIR))
46 #endif
47
48 #endif /* _SQUID_NEXT_ */
49 #endif /* SQUID_OS_NEXT_H */