From cca91ddaae2121f42b2d5c08867bb93df8f9de13 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 6 Feb 2009 11:27:02 -0800 Subject: Fix libICE build after code motion in d192bac409... The #ifdef ICE_t case in Xtransutil.c depended on some #includes that are done in files that transport.c previously included before Xtransutil.c but are now after Xtransutil.c is included. Signed-off-by: Alan Coopersmith --- Xtransutil.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Xtransutil.c') 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 +# endif + #include char * @@ -438,6 +445,7 @@ TRANS(WSAStartup) (void) } #endif +#include static int is_numeric (char *str) -- cgit v1.2.3