diff options
Diffstat (limited to 'ext/socket/socket.c')
-rw-r--r-- | ext/socket/socket.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c index 8cf8f8d37f..c65de566e4 100644 --- a/ext/socket/socket.c +++ b/ext/socket/socket.c @@ -21,7 +21,11 @@ #endif #ifndef NT -#include <sys/socket.h> +#if defined(__BEOS__) +# include <net/socket.h> +#else +# include <sys/socket.h> +#endif #include <netinet/in.h> #ifdef HAVE_NETINET_TCP_H # include <netinet/tcp.h> |