From: hniksic Date: Thu, 29 Nov 2001 18:22:18 +0000 (-0800) Subject: [svn] Remove implicit declaration warnings. X-Git-Tag: v1.13~1998 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=fb98d1e4b02c8f1f0c2adff074fcfc0ecadeb1a2 [svn] Remove implicit declaration warnings. --- diff --git a/src/ChangeLog b/src/ChangeLog index e157e109..630ef7e2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2001-11-29 Hrvoje Niksic + + * connect.h: Declare select_fd. + 2001-11-29 Hrvoje Niksic * recur.c (descend_url_p): When resolving no_parent, compare with diff --git a/src/connect.h b/src/connect.h index e9674802..1924cba3 100644 --- a/src/connect.h +++ b/src/connect.h @@ -29,6 +29,7 @@ int connect_to_many PARAMS ((struct address_list *, unsigned short, int)); void set_connection_host_name PARAMS ((const char *)); int test_socket_open PARAMS ((int)); +int select_fd PARAMS ((int, int, int)); uerr_t bindport PARAMS ((unsigned short *)); uerr_t acceptport PARAMS ((int *)); void closeport PARAMS ((int)); diff --git a/src/gen_sslfunc.c b/src/gen_sslfunc.c index 247cbf46..20fd53d7 100644 --- a/src/gen_sslfunc.c +++ b/src/gen_sslfunc.c @@ -24,6 +24,9 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include #include +#ifdef HAVE_UNISTD_H +# include +#endif #include #include diff --git a/src/rbuf.c b/src/rbuf.c index b04c2aee..9931998c 100644 --- a/src/rbuf.c +++ b/src/rbuf.c @@ -34,6 +34,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include #include #include +#include "gen_sslfunc.h" /* for ssl_iread */ #endif /* HAVE_SSL */ void diff --git a/src/retr.c b/src/retr.c index 94fa97b2..85822679 100644 --- a/src/retr.c +++ b/src/retr.c @@ -44,6 +44,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "connect.h" #include "hash.h" +#ifdef HAVE_SSL +# include "gen_sslfunc.h" /* for ssl_iread */ +#endif + #ifndef errno extern int errno; #endif