On Mon, Dec 22, 2003 at 08:22:41PM -0500, war wrote:
> Using: socks5-v1.0r11
> Has worked with lftp-2.6.10 just fine.

> NetAccess.cc:227: error: `SOCKSbind' undeclared (first use this function)
> NetAccess.cc:227: error: (Each undeclared identifier is reported only once

Try this patch.

-- 
   Alexander.
Index: include/post-config.h
===================================================================
RCS file: /home/lav/cvsroot/lftp/include/post-config.h,v
retrieving revision 1.1.2.2
diff -u -p -r1.1.2.2 post-config.h
--- include/post-config.h       17 Dec 2003 08:19:39 -0000      1.1.2.2
+++ include/post-config.h       23 Dec 2003 08:53:15 -0000
@@ -31,13 +31,6 @@
 CDECL const char *strerror(int);
 #endif
 
-#include <sys/types.h>
-#include <sys/socket.h>
-#ifdef lftp_socklen_t
-# undef  socklen_t
-# define socklen_t lftp_socklen_t
-#endif
-
 #include <gettext.h>
 #define _(Text) gettext (Text)
 #define N_(Text) Text
@@ -87,6 +80,13 @@ CDECL void SOCKSinit(const char *);
 #ifdef SOCKS5
 # define SOCKS
 # include <socks.h>
+#endif
+
+#include <sys/types.h>
+#include <sys/socket.h>
+#ifdef lftp_socklen_t
+# undef  socklen_t
+# define socklen_t lftp_socklen_t
 #endif
 
 #if defined __MSDOS__ || defined __CYGWIN32__

Reply via email to