mirror of
https://github.com/mirror/wget.git
synced 2025-01-19 08:40:36 +08:00
[svn] Applied Chris Seawood's patch for compilation under BEOS.
Patch published in <3B5D4CEF.5090208@seawood.org>.
This commit is contained in:
parent
0c42479322
commit
d60b54cba0
@ -1,3 +1,13 @@
|
|||||||
|
2001-11-16 Chris Seawood <cls@seawood.org>
|
||||||
|
|
||||||
|
* init.c: Ditto.
|
||||||
|
|
||||||
|
* host.c: Ditto.
|
||||||
|
|
||||||
|
* connect.c: Ditto.
|
||||||
|
|
||||||
|
* sysdep.h: Support compilation under BEOS.
|
||||||
|
|
||||||
2001-06-08 Edward J. Sabol <sabol@alderaan.gsfc.nasa.gov>
|
2001-06-08 Edward J. Sabol <sabol@alderaan.gsfc.nasa.gov>
|
||||||
|
|
||||||
* url.c (url_equal): Fix a memory leak when parseurl returns an
|
* url.c (url_equal): Fix a memory leak when parseurl returns an
|
||||||
|
@ -31,7 +31,9 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|||||||
# include <sys/socket.h>
|
# include <sys/socket.h>
|
||||||
# include <netdb.h>
|
# include <netdb.h>
|
||||||
# include <netinet/in.h>
|
# include <netinet/in.h>
|
||||||
|
#ifndef __BEOS__
|
||||||
# include <arpa/inet.h>
|
# include <arpa/inet.h>
|
||||||
|
#endif
|
||||||
#endif /* WINDOWS */
|
#endif /* WINDOWS */
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
@ -34,10 +34,16 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|||||||
#else
|
#else
|
||||||
# include <sys/socket.h>
|
# include <sys/socket.h>
|
||||||
# include <netinet/in.h>
|
# include <netinet/in.h>
|
||||||
|
#ifndef __BEOS__
|
||||||
# include <arpa/inet.h>
|
# include <arpa/inet.h>
|
||||||
|
#endif
|
||||||
# include <netdb.h>
|
# include <netdb.h>
|
||||||
#endif /* WINDOWS */
|
#endif /* WINDOWS */
|
||||||
|
|
||||||
|
#ifndef NO_ADDRESS
|
||||||
|
#define NO_ADDRESS NO_DATA
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_SYS_UTSNAME_H
|
#ifdef HAVE_SYS_UTSNAME_H
|
||||||
# include <sys/utsname.h>
|
# include <sys/utsname.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -38,8 +38,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|||||||
#else
|
#else
|
||||||
# include <sys/socket.h>
|
# include <sys/socket.h>
|
||||||
# include <netinet/in.h>
|
# include <netinet/in.h>
|
||||||
|
#ifndef __BEOS__
|
||||||
# include <arpa/inet.h>
|
# include <arpa/inet.h>
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_PWD_H
|
#ifdef HAVE_PWD_H
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
|
@ -94,6 +94,13 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __BEOS__
|
||||||
|
# undef READ
|
||||||
|
# undef WRITE
|
||||||
|
# define READ(fd, buf, cnt) recv((fd), (buf), (cnt), 0)
|
||||||
|
# define WRITE(fd, buf, cnt) send((fd), (buf), (cnt), 0)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* mswindows.h defines these. */
|
/* mswindows.h defines these. */
|
||||||
#ifndef READ
|
#ifndef READ
|
||||||
# define READ(fd, buf, cnt) read ((fd), (buf), (cnt))
|
# define READ(fd, buf, cnt) read ((fd), (buf), (cnt))
|
||||||
|
Loading…
Reference in New Issue
Block a user