diff options
author | Rasmus Lerdorf <rasmus@php.net> | 2001-01-21 17:29:15 +0000 |
---|---|---|
committer | Rasmus Lerdorf <rasmus@php.net> | 2001-01-21 17:29:15 +0000 |
commit | 83cf6629ec02f98e7ceca3977709f21c1238c910 (patch) | |
tree | 02e925037834502999bf7b0a8595fae28587e0eb /ext/standard/fsock.c | |
parent | 3353ad7e6e757f6e7373b8c78fce7d461e2037aa (diff) | |
download | php-git-83cf6629ec02f98e7ceca3977709f21c1238c910.tar.gz |
@BeOS patch from svanegmond@bang.dhs.org modified somewhat by Rasmus
BeOS patch from svanegmond@bang.dhs.org modified somewhat by Rasmus
Diffstat (limited to 'ext/standard/fsock.c')
-rw-r--r-- | ext/standard/fsock.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/standard/fsock.c b/ext/standard/fsock.c index 60679fe541..6f46f53608 100644 --- a/ext/standard/fsock.c +++ b/ext/standard/fsock.c @@ -48,8 +48,10 @@ #else #include <netinet/in.h> #include <netdb.h> +#if HAVE_ARPA_INET_H #include <arpa/inet.h> #endif +#endif #ifdef PHP_WIN32 #undef AF_UNIX #endif @@ -136,7 +138,8 @@ PHPAPI int connect_nonb(int sockfd, struct timeval *timeout) { /* probably won't work on Win32, someone else might try it (read: fix it ;) */ -#if !defined(PHP_WIN32) && (defined(O_NONBLOCK) || defined(O_NDELAY)) + +#if (!defined(__BEOS__) && !defined(PHP_WIN32)) && (defined(O_NONBLOCK) || defined(O_NDELAY)) #ifndef O_NONBLOCK #define O_NONBLOCK O_NDELAY |