From 194c801617c4d6459a2a26b0ba5d8eb2d4f11ebc Mon Sep 17 00:00:00 2001 From: marha Date: Wed, 2 Sep 2009 19:18:53 +0000 Subject: Switched to xtrans-1.2.4.tar.gz --- X11/xtrans/Xtransutil.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'X11/xtrans/Xtransutil.c') diff --git a/X11/xtrans/Xtransutil.c b/X11/xtrans/Xtransutil.c index 0f7c7b2a5..bd9ff5282 100644 --- a/X11/xtrans/Xtransutil.c +++ b/X11/xtrans/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,10 +445,10 @@ TRANS(WSAStartup) (void) } #endif +#include static int -is_numeric (char *str) - +is_numeric (const char *str) { int i; @@ -472,7 +479,7 @@ is_numeric (char *str) * bit cannot be set and fail. */ static int -trans_mkdir(char *path, int mode) +trans_mkdir(const char *path, int mode) { struct stat buf; -- cgit v1.2.3