1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] Include <netdb.h> where h_errno is used. Likewise for <errno.h> and errno.

From <sxsvgsi7wcw.fsf@florida.arsdigita.de>.
This commit is contained in:
hniksic 2000-12-17 10:12:02 -08:00
parent 4995bc34a1
commit 2e8fc46b7b
9 changed files with 46 additions and 9 deletions

View File

@ -1,3 +1,18 @@
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> 2000-12-13 Hrvoje Niksic <hniksic@arsdigita.com>
* html-parse.c (advance_declaration): MSVC assert() chokes on * html-parse.c (advance_declaration): MSVC assert() chokes on

View File

@ -43,13 +43,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "host.h" #include "host.h"
#include "ftp.h" #include "ftp.h"
#ifndef errno
extern int errno;
#endif
#ifndef h_errno
extern int h_errno;
#endif
char ftp_last_respline[128]; char ftp_last_respline[128];

View File

@ -33,6 +33,9 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <sys/types.h> #include <sys/types.h>
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#ifndef WINDOWS
# include <netdb.h> /* for h_errno */
#endif
#include "wget.h" #include "wget.h"
#include "utils.h" #include "utils.h"

View File

@ -18,19 +18,29 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <config.h> #include <config.h>
#ifdef HAVE_SSL #ifdef HAVE_SSL
#include <assert.h>
#include <sys/time.h>
#include <errno.h>
#include <openssl/bio.h> #include <openssl/bio.h>
#include <openssl/crypto.h> #include <openssl/crypto.h>
#include <openssl/x509.h> #include <openssl/x509.h>
#include <openssl/ssl.h> #include <openssl/ssl.h>
#include <openssl/err.h> #include <openssl/err.h>
#include <openssl/pem.h> #include <openssl/pem.h>
#include <assert.h>
#define SSL_ERR_CTX_CREATION -2 #define SSL_ERR_CTX_CREATION -2
#include <sys/time.h>
#include "wget.h" #include "wget.h"
#include "connect.h" #include "connect.h"
#ifndef errno
extern int errno;
#endif
/* #### Shouldn't this be static? --hniksic */ /* #### Shouldn't this be static? --hniksic */
int verify_callback PARAMS ((int, X509_STORE_CTX *)); int verify_callback PARAMS ((int, X509_STORE_CTX *));

View File

@ -46,6 +46,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifdef WINDOWS #ifdef WINDOWS
# include <winsock.h> # include <winsock.h>
#else
# include <netdb.h> /* for h_errno */
#endif #endif
#include "wget.h" #include "wget.h"

View File

@ -39,6 +39,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
# include <locale.h> # include <locale.h>
#endif /* HAVE_LOCALE_H */ #endif /* HAVE_LOCALE_H */
#endif /* HAVE_NLS */ #endif /* HAVE_NLS */
#include <errno.h>
#define OPTIONS_DEFINED_HERE /* for options.h */ #define OPTIONS_DEFINED_HERE /* for options.h */

View File

@ -26,10 +26,15 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <winsock.h> #include <winsock.h>
#include <string.h> #include <string.h>
#include <assert.h> #include <assert.h>
#include <errno.h>
#include "wget.h" #include "wget.h"
#include "url.h" #include "url.h"
#ifndef errno
extern int errno;
#endif
char *argv0; char *argv0;
/* Defined in log.c. */ /* Defined in log.c. */

View File

@ -44,6 +44,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "host.h" #include "host.h"
#include "hash.h" #include "hash.h"
#ifndef errno
extern int errno;
#endif
extern char *version_string; extern char *version_string;
#define ROBOTS_FILENAME "robots.txt" #define ROBOTS_FILENAME "robots.txt"

View File

@ -44,6 +44,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "connect.h" #include "connect.h"
#include "hash.h" #include "hash.h"
#ifndef errno
extern int errno;
#endif
#ifdef WINDOWS #ifdef WINDOWS
LARGE_INTEGER internal_time; LARGE_INTEGER internal_time;
#else #else