aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_network.c
diff options
context:
space:
mode:
authoraljen <[email protected]>2009-09-05 23:06:53 +0200
committerBrian Paul <[email protected]>2009-09-09 08:24:18 -0600
commitc6c44bf48124dd5b4661014a8d58482c5a54557f (patch)
tree6472d129b3fefc294b6feaa1bb380a7e207db48d /src/gallium/auxiliary/util/u_network.c
parent89a765e92b4847f80848c8be89efbce2d021434b (diff)
gallium: Added HaikuOS platform
Diffstat (limited to 'src/gallium/auxiliary/util/u_network.c')
-rw-r--r--src/gallium/auxiliary/util/u_network.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/util/u_network.c b/src/gallium/auxiliary/util/u_network.c
index 07d804ecdbf..bc4b7584067 100644
--- a/src/gallium/auxiliary/util/u_network.c
+++ b/src/gallium/auxiliary/util/u_network.c
@@ -6,7 +6,7 @@
#if defined(PIPE_SUBSYSTEM_WINDOWS_USER)
# include <winsock2.h>
# include <windows.h>
-#elif defined(PIPE_OS_LINUX)
+#elif defined(PIPE_OS_LINUX) || defined(PIPE_OS_HAIKU)
# include <sys/socket.h>
# include <netinet/in.h>
# include <unistd.h>
@@ -54,7 +54,7 @@ u_socket_close(int s)
if (s < 0)
return;
-#if defined(PIPE_OS_LINUX)
+#if defined(PIPE_OS_LINUX) || defined(PIPE_OS_HAIKU)
shutdown(s, SHUT_RDWR);
close(s);
#elif defined(PIPE_SUBSYSTEM_WINDOWS_USER)
@@ -169,7 +169,7 @@ u_socket_listen_on_port(uint16_t portnum)
void
u_socket_block(int s, boolean block)
{
-#if defined(PIPE_OS_LINUX)
+#if defined(PIPE_OS_LINUX) || defined(PIPE_OS_HAIKU)
int old = fcntl(s, F_GETFL, 0);
if (old == -1)
return;