diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-02-06 11:27:02 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-02-06 11:27:02 -0800 |
commit | cca91ddaae2121f42b2d5c08867bb93df8f9de13 (patch) | |
tree | 371f947d1ae2a3fc12e08d5d83de8337069d1cf3 | |
parent | d192bac409fe5ef99fa9fb9b5a0d5f656f0f1412 (diff) |
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 <alan.coopersmith@sun.com>
-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) |