diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2000-10-11 23:39:43 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2000-10-11 23:39:43 +0000 |
commit | b0426caeb9ef91efb9a623216d4fcb028feebafb (patch) | |
tree | 8400904cbcf90e9af24d9f00ff4aa4b00a41e263 /nanoftp.c | |
parent | cd4296125d8a597fa89533100061820446ba497d (diff) | |
download | libxml2-b0426caeb9ef91efb9a623216d4fcb028feebafb.tar.gz |
patch for socklen_t detection by Albert Chin-A-Young <china@thewrittenword.com>
Daniel
Diffstat (limited to 'nanoftp.c')
-rw-r--r-- | nanoftp.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -1244,11 +1244,7 @@ xmlNanoFTPGetConnection(void *ctx) { unsigned char ad[6], *adp, *portp; unsigned int temp[6]; struct sockaddr_in dataAddr; -#ifdef HAVE_SOCKLEN_T - socklen_t dataAddrLen; -#else - unsigned int dataAddrLen; -#endif + SOCKLEN_T dataAddrLen; ctxt->dataFd = socket (AF_INET, SOCK_STREAM, IPPROTO_TCP); if (ctxt->dataFd < 0) { |