]> git.ipfire.org Git - thirdparty/squid.git/blame - compat/os/freebsd.h
Source Format Enforcement (#763)
[thirdparty/squid.git] / compat / os / freebsd.h
CommitLineData
37be9888 1/*
f70aedc4 2 * Copyright (C) 1996-2021 The Squid Software Foundation and contributors
37be9888
AJ
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
f04e1182
AJ
9#ifndef SQUID_OS_FREEBSD_H
10#define SQUID_OS_FREEBSD_H
11
1191b93b 12#if _SQUID_FREEBSD_
f04e1182
AJ
13
14/****************************************************************************
15 *--------------------------------------------------------------------------*
16 * DO *NOT* MAKE ANY CHANGES below here unless you know what you're doing...*
17 *--------------------------------------------------------------------------*
18 ****************************************************************************/
19
f04e1182
AJ
20#if USE_ASYNC_IO && defined(LINUXTHREADS)
21#define _SQUID_LINUX_THREADS_
22#endif
23
24/*
25 * Don't allow inclusion of malloc.h
26 */
27#if defined(HAVE_MALLOC_H)
28#undef HAVE_MALLOC_H
29#endif
30
31#define _etext etext
32
055421ee
AJ
33/*
34 * This OS has at least one version that defines these as private
35 * kernel macros commented as being 'non-standard'.
36 * We need to use them, much nicer than the OS-provided __u*_*[]
37 */
38//#define s6_addr8 __u6_addr.__u6_addr8
39//#define s6_addr16 __u6_addr.__u6_addr16
40#define s6_addr32 __u6_addr.__u6_addr32
41
f04e1182
AJ
42#endif /* _SQUID_FREEBSD_ */
43#endif /* SQUID_OS_FREEBSD_H */
f53969cc 44