]> git.ipfire.org Git - thirdparty/squid.git/blob - compat/os/next.h
Merged from trunk
[thirdparty/squid.git] / compat / os / next.h
1 #ifndef SQUID_CONFIG_H
2 #include "config.h"
3 #endif
4
5 #ifndef SQUID_OS_NEXT_H
6 #define SQUID_OS_NEXT_H
7
8 #ifdef _SQUID_NEXT_
9
10 /****************************************************************************
11 *--------------------------------------------------------------------------*
12 * DO *NOT* MAKE ANY CHANGES below here unless you know what you're doing...*
13 *--------------------------------------------------------------------------*
14 ****************************************************************************/
15
16
17 /*
18 * Don't allow inclusion of malloc.h
19 */
20 #if defined(HAVE_MALLOC_H)
21 #undef HAVE_MALLOC_H
22 #endif
23
24 /*
25 * S_ISDIR() may not be defined on Next
26 */
27 #if HAVE_SYS_STAT_H
28 #include <sys/stat.h>
29 #endif
30 #if !defined(S_ISDIR)
31 #define S_ISDIR(mode) (((mode) & (_S_IFMT)) == (_S_IFDIR))
32 #endif
33
34 /*
35 * WAS: lots of special wrappers labeled only 'protect NEXTSTEP'
36 * I'm assuming its an incomplete definition problem on that OS.
37 * Or a missing safety wrapper by the looks of the _SQUID_NETDB_H_
38 *
39 * Anyway, this file is included before all general non-type headers.
40 * doing the include here for Next and undefining HAVE_NETDB_H will
41 * save us from including it again in general.
42 */
43 // All the hacks included this first without safety wrapping, then netdb.h.
44 #include <netinet/in_systm.h>
45 #if HAVE_NETDB_H
46 #include <netdb.h>
47 #endif
48 #undef HAVE_NETDB_H
49 #define HAVE_NETDB_H 0
50
51
52 #endif /* _SQUID_NEXT_ */
53 #endif /* SQUID_OS_NEXT_H */