diff options
author | Matthieu Herrb <matthieu.herrb@laas.fr> | 2009-02-15 17:31:41 +0100 |
---|---|---|
committer | Matthieu Herrb <matthieu.herrb@laas.fr> | 2009-02-15 17:31:41 +0100 |
commit | bc7a8a3d4bbff2f4b96550ec573124e9ace3cc8c (patch) | |
tree | 8b7ff2188ad2ce41cf68888f1fdd9fd5952d45c6 /Xtransutil.c | |
parent | e79bf28bbc3bad06ab1afb36a2b263de16e5fe37 (diff) | |
parent | 732f3366c40c4bea258b11b96c4763f5948a4844 (diff) |
Merge commit 'origin/master' into obsd
Diffstat (limited to 'Xtransutil.c')
-rw-r--r-- | Xtransutil.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Xtransutil.c b/Xtransutil.c index 134446d..2ffcb0d 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 * @@ -442,10 +449,10 @@ TRANS(WSAStartup) (void) } #endif +#include <ctype.h> static int -is_numeric (char *str) - +is_numeric (const char *str) { int i; |