]>
Commit | Line | Data |
---|---|---|
37be9888 | 1 | /* |
bf95c10a | 2 | * Copyright (C) 1996-2022 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_OPENBSD_H |
10 | #define SQUID_OS_OPENBSD_H | |
11 | ||
1191b93b | 12 | #if _SQUID_OPENBSD_ |
f04e1182 AJ |
13 | |
14 | /**************************************************************************** | |
15 | *--------------------------------------------------------------------------* | |
16 | * DO *NOT* MAKE ANY CHANGES below here unless you know what you're doing...* | |
17 | *--------------------------------------------------------------------------* | |
18 | ****************************************************************************/ | |
19 | ||
20 | /* | |
21 | * Don't allow inclusion of malloc.h | |
22 | */ | |
32d002cb | 23 | #if HAVE_MALLOC_H |
f04e1182 AJ |
24 | #undef HAVE_MALLOC_H |
25 | #endif | |
26 | ||
055421ee AJ |
27 | /* |
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*_*[] | |
31 | */ | |
32 | //#define s6_addr8 __u6_addr.__u6_addr8 | |
33 | //#define s6_addr16 __u6_addr.__u6_addr16 | |
34 | #define s6_addr32 __u6_addr.__u6_addr32 | |
35 | ||
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) | |
39 | #endif | |
40 | ||
068f1c53 AJ |
41 | /* OpenBSD 4.8 and 4.9 require netinet/in.h before arpa/inet.h */ |
42 | #if HAVE_NETINET_IN_H | |
43 | #include <netinet/in.h> | |
44 | #endif | |
45 | #if HAVE_ARPA_INET_H | |
46 | #include <arpa/inet.h> | |
47 | #endif | |
48 | ||
f04e1182 AJ |
49 | #endif /* _SQUID_OPENBSD_ */ |
50 | #endif /* SQUID_OS_OPENBSD_H */ | |
f53969cc | 51 |