1 ## Copyright (C) 1996-2020 The Squid Software Foundation and contributors
3 ## Squid software is distributed under GPLv2+ license and includes
4 ## contributions from numerous individuals and organizations.
5 ## Please see the COPYING and CONTRIBUTORS files for details.
8 dnl This encapsulates the nasty mess of headers we need to check when
10 AC_DEFUN([SQUID_DEFAULT_INCLUDES],[[
11 /* What a mess.. many systems have added the (now standard) bit types
12 * in their own ways, so we need to scan a wide variety of headers to
14 * IMPORTANT: Keep compat/types.h syncronised with this list
17 #include <sys/types.h>
19 #if HAVE_LINUX_TYPES_H
20 #include <linux/types.h>
31 #if HAVE_SYS_BITYPES_H
32 #include <sys/bitypes.h>
35 #include <sys/select.h>
37 #if HAVE_NETINET_IN_SYSTM_H
38 #include <netinet/in_systm.h>
43 AC_DEFUN([SQUID_BSDNET_INCLUDES],[
44 SQUID_DEFAULT_INCLUDES
46 #include <sys/param.h>
52 #include <sys/socket.h>
58 #include <netinet/in.h>
61 #include <netinet/ip.h>
63 #if HAVE_NETINET_IP_COMPAT_H
64 #include <netinet/ip_compat.h>
66 #if HAVE_NETINET_IP_FIL_H
67 #include <netinet/ip_fil.h>