]> git.ipfire.org Git - thirdparty/squid.git/blob - compat/os/freebsd.h
Merge 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 /*
31 * This OS has at least one version that defines these as private
32 * kernel macros commented as being 'non-standard'.
33 * We need to use them, much nicer than the OS-provided __u*_*[]
34 */
35 //#define s6_addr8 __u6_addr.__u6_addr8
36 //#define s6_addr16 __u6_addr.__u6_addr16
37 #define s6_addr32 __u6_addr.__u6_addr32
38
39
40 #endif /* _SQUID_FREEBSD_ */
41 #endif /* SQUID_OS_FREEBSD_H */