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 #include @@ -40,6 +41,8 @@ #include #include +#undef getaddrinfo + #define ai2sin(x) ((struct sockaddr_in *)((x)->ai_addr)) #define ai2sin6(x) ((struct sockaddr_in6 *)((x)->ai_addr))