diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2000-09-24 08:12:14 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2000-09-24 08:12:14 +0000 |
commit | 281f8ff4315aa0a15251dfeb15d0963596ec46bf (patch) | |
tree | 6ad408acb855540ca261e4d440d28bb5e87a30d3 /nanoftp.c | |
parent | 8ddb5a7aef4df31c80a63301fe66f4e5bfc7a1d1 (diff) | |
download | libxml2-281f8ff4315aa0a15251dfeb15d0963596ec46bf.tar.gz |
Got an OSF/1 bug report fixing related problems:
- xmlversion.h.in nanoftp.c nanohttp.c: traying to work out the
problem of socklen_t being undefined on a number of platforms
- debugXML.c: fixed a compilation problem when without snprintf
Daniel
Diffstat (limited to 'nanoftp.c')
-rw-r--r-- | nanoftp.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1244,7 +1244,11 @@ xmlNanoFTPGetConnection(void *ctx) { unsigned char ad[6], *adp, *portp; unsigned int temp[6]; struct sockaddr_in dataAddr; - size_t dataAddrLen; +#ifdef HAVE_SOCKLEN_T + socklen_t dataAddrLen; +#else + unsigned int dataAddrLen; +#endif ctxt->dataFd = socket (AF_INET, SOCK_STREAM, IPPROTO_TCP); if (ctxt->dataFd < 0) { |