On Fri, Apr 02, 2004 at 09:35:52AM -0500, Justin Piszcz wrote:
> NetAccess.cc:242: error: `SOCKSbind' undeclared (first use this function)
Ok, please try this (another) patch.
--
Alexander.
--- include/post-config.h 17 Dec 2003 08:34:39 -0000 1.3
+++ include/post-config.h 2 Apr 2004 14:56:54 -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__