aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/libc-compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/uapi/linux/libc-compat.h')
-rw-r--r--include/uapi/linux/libc-compat.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/uapi/linux/libc-compat.h b/include/uapi/linux/libc-compat.h
index fa673e9cc040..7d024ceb075d 100644
--- a/include/uapi/linux/libc-compat.h
+++ b/include/uapi/linux/libc-compat.h
@@ -56,6 +56,13 @@
56 56
57/* GLIBC headers included first so don't define anything 57/* GLIBC headers included first so don't define anything
58 * that would already be defined. */ 58 * that would already be defined. */
59#define __UAPI_DEF_IN_ADDR 0
60#define __UAPI_DEF_IN_IPPROTO 0
61#define __UAPI_DEF_IN_PKTINFO 0
62#define __UAPI_DEF_IP_MREQ 0
63#define __UAPI_DEF_SOCKADDR_IN 0
64#define __UAPI_DEF_IN_CLASS 0
65
59#define __UAPI_DEF_IN6_ADDR 0 66#define __UAPI_DEF_IN6_ADDR 0
60/* The exception is the in6_addr macros which must be defined 67/* The exception is the in6_addr macros which must be defined
61 * if the glibc code didn't define them. This guard matches 68 * if the glibc code didn't define them. This guard matches
@@ -78,6 +85,13 @@
78/* Linux headers included first, and we must define everything 85/* Linux headers included first, and we must define everything
79 * we need. The expectation is that glibc will check the 86 * we need. The expectation is that glibc will check the
80 * __UAPI_DEF_* defines and adjust appropriately. */ 87 * __UAPI_DEF_* defines and adjust appropriately. */
88#define __UAPI_DEF_IN_ADDR 1
89#define __UAPI_DEF_IN_IPPROTO 1
90#define __UAPI_DEF_IN_PKTINFO 1
91#define __UAPI_DEF_IP_MREQ 1
92#define __UAPI_DEF_SOCKADDR_IN 1
93#define __UAPI_DEF_IN_CLASS 1
94
81#define __UAPI_DEF_IN6_ADDR 1 95#define __UAPI_DEF_IN6_ADDR 1
82/* We unconditionally define the in6_addr macros and glibc must 96/* We unconditionally define the in6_addr macros and glibc must
83 * coordinate. */ 97 * coordinate. */
@@ -103,6 +117,14 @@
103 * that we need. */ 117 * that we need. */
104#else /* !defined(__GLIBC__) */ 118#else /* !defined(__GLIBC__) */
105 119
120/* Definitions for in.h */
121#define __UAPI_DEF_IN_ADDR 1
122#define __UAPI_DEF_IN_IPPROTO 1
123#define __UAPI_DEF_IN_PKTINFO 1
124#define __UAPI_DEF_IP_MREQ 1
125#define __UAPI_DEF_SOCKADDR_IN 1
126#define __UAPI_DEF_IN_CLASS 1
127
106/* Definitions for in6.h */ 128/* Definitions for in6.h */
107#define __UAPI_DEF_IN6_ADDR 1 129#define __UAPI_DEF_IN6_ADDR 1
108#define __UAPI_DEF_IN6_ADDR_ALT 1 130#define __UAPI_DEF_IN6_ADDR_ALT 1