]> git.ipfire.org Git - thirdparty/squid.git/blob - compat/os/macosx.h
SourceFormat Enforcement
[thirdparty/squid.git] / compat / os / macosx.h
1 /*
2 * Copyright (C) 1996-2016 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_MACOSX_H
10 #define SQUID_OS_MACOSX_H
11
12 #if _SQUID_APPLE_
13
14 /****************************************************************************
15 *--------------------------------------------------------------------------*
16 * DO *NOT* MAKE ANY CHANGES below here unless you know what you're doing...*
17 *--------------------------------------------------------------------------*
18 ****************************************************************************/
19
20 /*
21 * This OS has at least one version that defines these as private
22 * kernel macros commented as being 'non-standard'.
23 * We need to use them, much nicer than the OS-provided __u*_*[]
24 */
25 //#define s6_addr8 __u6_addr.__u6_addr8
26 //#define s6_addr16 __u6_addr.__u6_addr16
27 #define s6_addr32 __u6_addr.__u6_addr32
28
29 #include "compat/cmsg.h"
30
31 // MacOS GCC 4.0.1 and 4.2.1 supply __GNUC_GNU_INLINE__ but do not actually define __attribute__((gnu_inline))
32 #if defined(__cplusplus) && !defined(_SQUID_EXTERNNEW_)
33 #define _SQUID_EXTERNNEW_ extern inline
34 #endif
35
36 #endif /* _SQUID_APPLE_ */
37 #endif /* SQUID_OS_MACOSX_H */
38