Clean up conditionals for declaration of gets.
[glibc.git] / include / ifaddrs.h
blob54f4b7a3cec9b21020309626d9718a356cc96e5c
1 #ifndef _IFADDRS_H
2 #include <inet/ifaddrs.h>
4 # ifndef _ISOMAC
6 #include <stdbool.h>
7 #include <stdint.h>
9 libc_hidden_proto (getifaddrs)
10 libc_hidden_proto (freeifaddrs)
12 struct in6addrinfo
14 enum {
15 in6ai_deprecated = 1,
16 in6ai_homeaddress = 2
17 } flags:8;
18 uint8_t prefixlen;
19 uint16_t :16;
20 uint32_t index;
21 uint32_t addr[4];
24 extern void __check_pf (bool *seen_ipv4, bool *seen_ipv6,
25 struct in6addrinfo **in6ai, size_t *in6ailen)
26 attribute_hidden;
27 extern void __free_in6ai (struct in6addrinfo *in6ai) attribute_hidden;
28 extern void __check_native (uint32_t a1_index, int *a1_native,
29 uint32_t a2_index, int *a2_native)
30 attribute_hidden;
32 #if IS_IN (nscd)
33 extern uint32_t __bump_nl_timestamp (void) attribute_hidden;
34 #endif
36 # endif /* !_ISOMAC */
37 #endif /* ifaddrs.h */