]>
git.ipfire.org Git - thirdparty/squid.git/blob - compat/os/openbsd.h
718fa9d31b0f724c2ea2c1073c99e11d49786103
2 * Copyright (C) 1996-2016 The Squid Software Foundation and contributors
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.
9 #ifndef SQUID_OS_OPENBSD_H
10 #define SQUID_OS_OPENBSD_H
14 /****************************************************************************
15 *--------------------------------------------------------------------------*
16 * DO *NOT* MAKE ANY CHANGES below here unless you know what you're doing...*
17 *--------------------------------------------------------------------------*
18 ****************************************************************************/
21 * Don't allow inclusion of malloc.h
28 * This OS has at least one version that defines these as private
29 * kernel macros commented as being 'non-standard'.
30 * We need to use them, much nicer than the OS-provided __u*_*[]
32 //#define s6_addr8 __u6_addr.__u6_addr8
33 //#define s6_addr16 __u6_addr.__u6_addr16
34 #define s6_addr32 __u6_addr.__u6_addr32
36 /* OpenBSD also hide v6only socket option we need for comm layer. :-( */
37 #if !defined(IPV6_V6ONLY)
38 #define IPV6_V6ONLY 27 // from OpenBSD 4.3 headers. (NP: does not match non-BSD OS values)
41 /* OpenBSD 4.8 and 4.9 require netinet/in.h before arpa/inet.h */
43 #include <netinet/in.h>
46 #include <arpa/inet.h>
49 #endif /* _SQUID_OPENBSD_ */
50 #endif /* SQUID_OS_OPENBSD_H */