openbsd.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
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
9#ifndef SQUID_OS_OPENBSD_H
10#define SQUID_OS_OPENBSD_H
11
12#if _SQUID_OPENBSD_
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 */
23#if HAVE_MALLOC_H
24#undef HAVE_MALLOC_H
25#endif
26
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
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
49#endif /* _SQUID_OPENBSD_ */
50#endif /* SQUID_OS_OPENBSD_H */
51

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors