From <sxsvgsi7wcw.fsf@florida.arsdigita.de>.
+2000-12-17 Hrvoje Niksic <hniksic@arsdigita.com>
+
+ * mswindows.c: Include <errno.h>.
+
+ * gen_sslfunc.c: Include <errno.h>.
+
+ * ftp-basic.c: Don't attempt to declare errno or h_errno because
+ they're not used.
+
+ * main.c: Include <errno.h> because errno is used.
+
+ * ftp.c: Ditto.
+
+ * http.c: Include <netdb.h> for h_errno.
+
2000-12-13 Hrvoje Niksic <hniksic@arsdigita.com>
* html-parse.c (advance_declaration): MSVC assert() chokes on
2000-12-13 Hrvoje Niksic <hniksic@arsdigita.com>
* html-parse.c (advance_declaration): MSVC assert() chokes on
#include "host.h"
#include "ftp.h"
#include "host.h"
#include "ftp.h"
-#ifndef errno
-extern int errno;
-#endif
-#ifndef h_errno
-extern int h_errno;
-#endif
-
char ftp_last_respline[128];
\f
char ftp_last_respline[128];
\f
#include <sys/types.h>
#include <assert.h>
#include <errno.h>
#include <sys/types.h>
#include <assert.h>
#include <errno.h>
+#ifndef WINDOWS
+# include <netdb.h> /* for h_errno */
+#endif
#include "wget.h"
#include "utils.h"
#include "wget.h"
#include "utils.h"
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <config.h>
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <config.h>
+
+#include <assert.h>
+#include <sys/time.h>
+#include <errno.h>
+
#include <openssl/bio.h>
#include <openssl/crypto.h>
#include <openssl/x509.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
#include <openssl/pem.h>
#include <openssl/bio.h>
#include <openssl/crypto.h>
#include <openssl/x509.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
#include <openssl/pem.h>
#define SSL_ERR_CTX_CREATION -2
#define SSL_ERR_CTX_CREATION -2
#include "wget.h"
#include "connect.h"
#include "wget.h"
#include "connect.h"
+#ifndef errno
+extern int errno;
+#endif
+
/* #### Shouldn't this be static? --hniksic */
int verify_callback PARAMS ((int, X509_STORE_CTX *));
/* #### Shouldn't this be static? --hniksic */
int verify_callback PARAMS ((int, X509_STORE_CTX *));
#ifdef WINDOWS
# include <winsock.h>
#ifdef WINDOWS
# include <winsock.h>
+#else
+# include <netdb.h> /* for h_errno */
# include <locale.h>
#endif /* HAVE_LOCALE_H */
#endif /* HAVE_NLS */
# include <locale.h>
#endif /* HAVE_LOCALE_H */
#endif /* HAVE_NLS */
#define OPTIONS_DEFINED_HERE /* for options.h */
#define OPTIONS_DEFINED_HERE /* for options.h */
#include <winsock.h>
#include <string.h>
#include <assert.h>
#include <winsock.h>
#include <string.h>
#include <assert.h>
#include "wget.h"
#include "url.h"
#include "wget.h"
#include "url.h"
+#ifndef errno
+extern int errno;
+#endif
+
char *argv0;
/* Defined in log.c. */
char *argv0;
/* Defined in log.c. */
#include "host.h"
#include "hash.h"
#include "host.h"
#include "hash.h"
+#ifndef errno
+extern int errno;
+#endif
+
extern char *version_string;
#define ROBOTS_FILENAME "robots.txt"
extern char *version_string;
#define ROBOTS_FILENAME "robots.txt"
#include "connect.h"
#include "hash.h"
#include "connect.h"
#include "hash.h"
+#ifndef errno
+extern int errno;
+#endif
+
#ifdef WINDOWS
LARGE_INTEGER internal_time;
#else
#ifdef WINDOWS
LARGE_INTEGER internal_time;
#else