1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49 #ifndef _UAPI_LIBC_COMPAT_H
50 #define _UAPI_LIBC_COMPAT_H
51
52
53 #if defined(__GLIBC__)
54
55
56 #if defined(_NET_IF_H) && defined(__USE_MISC)
57
58
59
60
61 #define __UAPI_DEF_IF_IFCONF 0
62 #define __UAPI_DEF_IF_IFMAP 0
63 #define __UAPI_DEF_IF_IFNAMSIZ 0
64 #define __UAPI_DEF_IF_IFREQ 0
65
66 #define __UAPI_DEF_IF_NET_DEVICE_FLAGS 0
67
68 #ifndef __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO
69 #define __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO 1
70 #endif
71
72 #else
73
74
75
76
77
78 #define __UAPI_DEF_IF_IFCONF 1
79 #define __UAPI_DEF_IF_IFMAP 1
80 #define __UAPI_DEF_IF_IFNAMSIZ 1
81 #define __UAPI_DEF_IF_IFREQ 1
82
83 #define __UAPI_DEF_IF_NET_DEVICE_FLAGS 1
84
85 #define __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO 1
86
87 #endif
88
89
90 #if defined(_NETINET_IN_H)
91
92
93
94 #define __UAPI_DEF_IN_ADDR 0
95 #define __UAPI_DEF_IN_IPPROTO 0
96 #define __UAPI_DEF_IN_PKTINFO 0
97 #define __UAPI_DEF_IP_MREQ 0
98 #define __UAPI_DEF_SOCKADDR_IN 0
99 #define __UAPI_DEF_IN_CLASS 0
100
101 #define __UAPI_DEF_IN6_ADDR 0
102
103
104
105
106 #if defined(__USE_MISC) || defined (__USE_GNU)
107 #define __UAPI_DEF_IN6_ADDR_ALT 0
108 #else
109 #define __UAPI_DEF_IN6_ADDR_ALT 1
110 #endif
111 #define __UAPI_DEF_SOCKADDR_IN6 0
112 #define __UAPI_DEF_IPV6_MREQ 0
113 #define __UAPI_DEF_IPPROTO_V6 0
114 #define __UAPI_DEF_IPV6_OPTIONS 0
115 #define __UAPI_DEF_IN6_PKTINFO 0
116 #define __UAPI_DEF_IP6_MTUINFO 0
117
118 #else
119
120
121
122
123 #define __UAPI_DEF_IN_ADDR 1
124 #define __UAPI_DEF_IN_IPPROTO 1
125 #define __UAPI_DEF_IN_PKTINFO 1
126 #define __UAPI_DEF_IP_MREQ 1
127 #define __UAPI_DEF_SOCKADDR_IN 1
128 #define __UAPI_DEF_IN_CLASS 1
129
130 #define __UAPI_DEF_IN6_ADDR 1
131
132
133 #define __UAPI_DEF_IN6_ADDR_ALT 1
134 #define __UAPI_DEF_SOCKADDR_IN6 1
135 #define __UAPI_DEF_IPV6_MREQ 1
136 #define __UAPI_DEF_IPPROTO_V6 1
137 #define __UAPI_DEF_IPV6_OPTIONS 1
138 #define __UAPI_DEF_IN6_PKTINFO 1
139 #define __UAPI_DEF_IP6_MTUINFO 1
140
141 #endif
142
143
144 #if defined(__NETIPX_IPX_H)
145
146 #define __UAPI_DEF_SOCKADDR_IPX 0
147 #define __UAPI_DEF_IPX_ROUTE_DEFINITION 0
148 #define __UAPI_DEF_IPX_INTERFACE_DEFINITION 0
149 #define __UAPI_DEF_IPX_CONFIG_DATA 0
150 #define __UAPI_DEF_IPX_ROUTE_DEF 0
151
152 #else
153
154 #define __UAPI_DEF_SOCKADDR_IPX 1
155 #define __UAPI_DEF_IPX_ROUTE_DEFINITION 1
156 #define __UAPI_DEF_IPX_INTERFACE_DEFINITION 1
157 #define __UAPI_DEF_IPX_CONFIG_DATA 1
158 #define __UAPI_DEF_IPX_ROUTE_DEF 1
159
160 #endif
161
162
163 #if defined(_SYS_XATTR_H)
164 #define __UAPI_DEF_XATTR 0
165 #else
166 #define __UAPI_DEF_XATTR 1
167 #endif
168
169
170
171
172
173 #else
174
175
176 #ifndef __UAPI_DEF_IF_IFCONF
177 #define __UAPI_DEF_IF_IFCONF 1
178 #endif
179 #ifndef __UAPI_DEF_IF_IFMAP
180 #define __UAPI_DEF_IF_IFMAP 1
181 #endif
182 #ifndef __UAPI_DEF_IF_IFNAMSIZ
183 #define __UAPI_DEF_IF_IFNAMSIZ 1
184 #endif
185 #ifndef __UAPI_DEF_IF_IFREQ
186 #define __UAPI_DEF_IF_IFREQ 1
187 #endif
188
189 #ifndef __UAPI_DEF_IF_NET_DEVICE_FLAGS
190 #define __UAPI_DEF_IF_NET_DEVICE_FLAGS 1
191 #endif
192
193 #ifndef __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO
194 #define __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO 1
195 #endif
196
197
198 #ifndef __UAPI_DEF_IN_ADDR
199 #define __UAPI_DEF_IN_ADDR 1
200 #endif
201 #ifndef __UAPI_DEF_IN_IPPROTO
202 #define __UAPI_DEF_IN_IPPROTO 1
203 #endif
204 #ifndef __UAPI_DEF_IN_PKTINFO
205 #define __UAPI_DEF_IN_PKTINFO 1
206 #endif
207 #ifndef __UAPI_DEF_IP_MREQ
208 #define __UAPI_DEF_IP_MREQ 1
209 #endif
210 #ifndef __UAPI_DEF_SOCKADDR_IN
211 #define __UAPI_DEF_SOCKADDR_IN 1
212 #endif
213 #ifndef __UAPI_DEF_IN_CLASS
214 #define __UAPI_DEF_IN_CLASS 1
215 #endif
216
217
218 #ifndef __UAPI_DEF_IN6_ADDR
219 #define __UAPI_DEF_IN6_ADDR 1
220 #endif
221 #ifndef __UAPI_DEF_IN6_ADDR_ALT
222 #define __UAPI_DEF_IN6_ADDR_ALT 1
223 #endif
224 #ifndef __UAPI_DEF_SOCKADDR_IN6
225 #define __UAPI_DEF_SOCKADDR_IN6 1
226 #endif
227 #ifndef __UAPI_DEF_IPV6_MREQ
228 #define __UAPI_DEF_IPV6_MREQ 1
229 #endif
230 #ifndef __UAPI_DEF_IPPROTO_V6
231 #define __UAPI_DEF_IPPROTO_V6 1
232 #endif
233 #ifndef __UAPI_DEF_IPV6_OPTIONS
234 #define __UAPI_DEF_IPV6_OPTIONS 1
235 #endif
236 #ifndef __UAPI_DEF_IN6_PKTINFO
237 #define __UAPI_DEF_IN6_PKTINFO 1
238 #endif
239 #ifndef __UAPI_DEF_IP6_MTUINFO
240 #define __UAPI_DEF_IP6_MTUINFO 1
241 #endif
242
243
244 #ifndef __UAPI_DEF_SOCKADDR_IPX
245 #define __UAPI_DEF_SOCKADDR_IPX 1
246 #endif
247 #ifndef __UAPI_DEF_IPX_ROUTE_DEFINITION
248 #define __UAPI_DEF_IPX_ROUTE_DEFINITION 1
249 #endif
250 #ifndef __UAPI_DEF_IPX_INTERFACE_DEFINITION
251 #define __UAPI_DEF_IPX_INTERFACE_DEFINITION 1
252 #endif
253 #ifndef __UAPI_DEF_IPX_CONFIG_DATA
254 #define __UAPI_DEF_IPX_CONFIG_DATA 1
255 #endif
256 #ifndef __UAPI_DEF_IPX_ROUTE_DEF
257 #define __UAPI_DEF_IPX_ROUTE_DEF 1
258 #endif
259
260
261 #ifndef __UAPI_DEF_XATTR
262 #define __UAPI_DEF_XATTR 1
263 #endif
264
265 #endif
266
267 #endif