]>
Commit | Line | Data |
---|---|---|
77b1029d | 1 | ## Copyright (C) 1996-2020 The Squid Software Foundation and contributors |
5d2e6f19 AJ |
2 | ## |
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. | |
6 | ## | |
7 | ||
6a9f6389 | 8 | dnl This encapsulates the nasty mess of headers we need to check when |
9 | dnl checking types. | |
36975a27 | 10 | AC_DEFUN([SQUID_DEFAULT_INCLUDES],[[ |
0a4e8536 | 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 | |
13 | * find them.. | |
489520a9 | 14 | * IMPORTANT: Keep compat/types.h syncronised with this list |
0a4e8536 | 15 | */ |
6a9f6389 | 16 | #if HAVE_SYS_TYPES_H |
0a4e8536 | 17 | #include <sys/types.h> |
6a9f6389 | 18 | #endif |
489520a9 AJ |
19 | #if HAVE_LINUX_TYPES_H |
20 | #include <linux/types.h> | |
21 | #endif | |
22 | #if HAVE_STDLIB_H | |
62b34480 | 23 | #include <stdlib.h> |
489520a9 AJ |
24 | #endif |
25 | #if HAVE_STDDEF_H | |
62b34480 | 26 | #include <stddef.h> |
27 | #endif | |
28 | #if HAVE_INTTYPES_H | |
29 | #include <inttypes.h> | |
30 | #endif | |
0a4e8536 | 31 | #if HAVE_SYS_BITYPES_H |
32 | #include <sys/bitypes.h> | |
33 | #endif | |
eea70fbb | 34 | #if HAVE_SYS_SELECT_H |
35 | #include <sys/select.h> | |
36 | #endif | |
dc8596bb AJ |
37 | #if HAVE_NETINET_IN_SYSTM_H |
38 | #include <netinet/in_systm.h> | |
39 | #endif | |
6a9f6389 | 40 | ]]) |
62b34480 | 41 | |
5a3237b0 | 42 | dnl *BSD net headers |
36975a27 | 43 | AC_DEFUN([SQUID_BSDNET_INCLUDES],[ |
5a3237b0 | 44 | SQUID_DEFAULT_INCLUDES |
e89ba018 FC |
45 | #if HAVE_SYS_PARAM_H |
46 | #include <sys/param.h> | |
47 | #endif | |
2874ca69 | 48 | #if HAVE_SYS_TIME_H |
49 | #include <sys/time.h> | |
50 | #endif | |
5a3237b0 | 51 | #if HAVE_SYS_SOCKET_H |
52 | #include <sys/socket.h> | |
53 | #endif | |
e89ba018 FC |
54 | #if HAVE_NET_IF_H |
55 | #include <net/if.h> | |
56 | #endif | |
5a3237b0 | 57 | #if HAVE_NETINET_IN_H |
58 | #include <netinet/in.h> | |
59 | #endif | |
dc8596bb AJ |
60 | #if HAVE_NETINET_IP_H |
61 | #include <netinet/ip.h> | |
62 | #endif | |
5a3237b0 | 63 | #if HAVE_NETINET_IP_COMPAT_H |
64 | #include <netinet/ip_compat.h> | |
65 | #endif | |
2874ca69 | 66 | #if HAVE_NETINET_IP_FIL_H |
67 | #include <netinet/ip_fil.h> | |
68 | #endif | |
5a3237b0 | 69 | ]) |