diff options
-rw-r--r-- | Xtransutil.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Xtransutil.c b/Xtransutil.c index 0f7c7b2..6c4d93f 100644 --- a/Xtransutil.c +++ b/Xtransutil.c @@ -225,6 +225,13 @@ TRANS(ConvertAddress)(int *familyp, int *addrlenp, Xtransaddr **addrp) #ifdef ICE_t +/* Needed for _XGethostbyaddr usage in TRANS(GetPeerNetworkId) */ +# if defined(TCPCONN) || defined(UNIXCONN) +# define X_INCLUDE_NETDB_H +# define XOS_USE_NO_LOCKING +# include <X11/Xos_r.h> +# endif + #include <signal.h> char * @@ -438,6 +445,7 @@ TRANS(WSAStartup) (void) } #endif +#include <ctype.h> static int is_numeric (char *str) |