]>
git.ipfire.org Git - thirdparty/squid.git/blob - compat/os/freebsd.h
5 #ifndef SQUID_OS_FREEBSD_H
6 #define SQUID_OS_FREEBSD_H
10 /****************************************************************************
11 *--------------------------------------------------------------------------*
12 * DO *NOT* MAKE ANY CHANGES below here unless you know what you're doing...*
13 *--------------------------------------------------------------------------*
14 ****************************************************************************/
17 #if USE_ASYNC_IO && defined(LINUXTHREADS)
18 #define _SQUID_LINUX_THREADS_
22 * Don't allow inclusion of malloc.h
24 #if defined(HAVE_MALLOC_H)
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
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*_*[]
41 //#define s6_addr8 __u6_addr.__u6_addr8
42 //#define s6_addr16 __u6_addr.__u6_addr16
43 #define s6_addr32 __u6_addr.__u6_addr32
46 #endif /* _SQUID_FREEBSD_ */
47 #endif /* SQUID_OS_FREEBSD_H */