blob: 4617da606d432a1e0147cd58eff5aae320ad01ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
Description: _XOPEN_SOURCE=600 breaks compilation of this unit
See /usr/include/netdb.h.
Maybe it is bettr to patch old getaddrinfo out completely.
Index: b/usr/src/lib/libsocket/inet/getaddrinfo.c
===================================================================
--- a/usr/src/lib/libsocket/inet/getaddrinfo.c
+++ b/usr/src/lib/libsocket/inet/getaddrinfo.c
@@ -25,6 +25,7 @@
*/
+#undef __PRAGMA_REDEFINE_EXTNAME
#include <netdb.h>
#include <arpa/inet.h>
@@ -40,6 +41,8 @@
#include <libintl.h>
#include <net/if.h>
+#undef getaddrinfo
+
#define ai2sin(x) ((struct sockaddr_in *)((x)->ai_addr))
#define ai2sin6(x) ((struct sockaddr_in6 *)((x)->ai_addr))
|