diff options
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 |