]> git.ipfire.org Git - thirdparty/squid.git/blob - compat/os/freebsd.h
Merged from trunk
[thirdparty/squid.git] / compat / os / freebsd.h
1 #ifndef SQUID_CONFIG_H
2 #include "config.h"
3 #endif
4
5 #ifndef SQUID_OS_FREEBSD_H
6 #define SQUID_OS_FREEBSD_H
7
8 #ifdef _SQUID_FREEBSD_
9
10 /****************************************************************************
11 *--------------------------------------------------------------------------*
12 * DO *NOT* MAKE ANY CHANGES below here unless you know what you're doing...*
13 *--------------------------------------------------------------------------*
14 ****************************************************************************/
15
16
17 #if USE_ASYNC_IO && defined(LINUXTHREADS)
18 #define _SQUID_LINUX_THREADS_
19 #endif
20
21 /*
22 * Don't allow inclusion of malloc.h
23 */
24 #if defined(HAVE_MALLOC_H)
25 #undef HAVE_MALLOC_H
26 #endif
27
28 #define _etext etext
29
30 /* Exclude CPPUnit tests from the allocator restrictions. */
31 /* BSD implementation uses these still */
32 #if defined(SQUID_UNIT_TEST)
33 #define SQUID_NO_ALLOC_PROTECT 1
34 #endif
35
36 /*
37 * This OS has at least one version that defines these as private
38 * kernel macros commented as being 'non-standard'.
39 * We need to use them, much nicer than the OS-provided __u*_*[]
40 */
41 //#define s6_addr8 __u6_addr.__u6_addr8
42 //#define s6_addr16 __u6_addr.__u6_addr16
43 #define s6_addr32 __u6_addr.__u6_addr32
44
45
46 #endif /* _SQUID_FREEBSD_ */
47 #endif /* SQUID_OS_FREEBSD_H */