aboutsummaryrefslogtreecommitdiff
path: root/X11/xtrans/Xtransutil.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2009-09-02 19:18:53 +0000
committermarha <marha@users.sourceforge.net>2009-09-02 19:18:53 +0000
commit194c801617c4d6459a2a26b0ba5d8eb2d4f11ebc (patch)
tree595211f06fcf1062bfdc71c56b477904e9c6d188 /X11/xtrans/Xtransutil.c
parent7842eeba5f0567175c41728d3eaae59fcbdef7a6 (diff)
downloadvcxsrv-194c801617c4d6459a2a26b0ba5d8eb2d4f11ebc.tar.gz
vcxsrv-194c801617c4d6459a2a26b0ba5d8eb2d4f11ebc.tar.bz2
vcxsrv-194c801617c4d6459a2a26b0ba5d8eb2d4f11ebc.zip
Switched to xtrans-1.2.4.tar.gz
Diffstat (limited to 'X11/xtrans/Xtransutil.c')
-rw-r--r--X11/xtrans/Xtransutil.c13
1 files changed, 10 insertions, 3 deletions
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 <X11/Xos_r.h>
+# endif
+
#include <signal.h>
char *
@@ -438,10 +445,10 @@ TRANS(WSAStartup) (void)
}
#endif
+#include <ctype.h>
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;