mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04: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>
|
||||
|
||||
* 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 <netdb.h>
|
||||
# include <netinet/in.h>
|
||||
#ifndef __BEOS__
|
||||
# include <arpa/inet.h>
|
||||
#endif
|
||||
#endif /* WINDOWS */
|
||||
|
||||
#include <errno.h>
|
||||
|
@ -34,10 +34,16 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||
#else
|
||||
# include <sys/socket.h>
|
||||
# include <netinet/in.h>
|
||||
#ifndef __BEOS__
|
||||
# include <arpa/inet.h>
|
||||
#endif
|
||||
# include <netdb.h>
|
||||
#endif /* WINDOWS */
|
||||
|
||||
#ifndef NO_ADDRESS
|
||||
#define NO_ADDRESS NO_DATA
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_SYS_UTSNAME_H
|
||||
# include <sys/utsname.h>
|
||||
#endif
|
||||
|
@ -38,8 +38,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||
#else
|
||||
# include <sys/socket.h>
|
||||
# include <netinet/in.h>
|
||||
#ifndef __BEOS__
|
||||
# include <arpa/inet.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_PWD_H
|
||||
#include <pwd.h>
|
||||
|
@ -94,6 +94,13 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||
#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. */
|
||||
#ifndef READ
|
||||
# define READ(fd, buf, cnt) read ((fd), (buf), (cnt))
|
||||
|
Loading…
Reference in New Issue
Block a user