summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_network.h
diff options
context:
space:
mode:
authorJonathan Gray <[email protected]>2018-02-28 21:21:14 +1100
committerEmil Velikov <[email protected]>2018-03-01 18:44:39 +0000
commit034bbaa6c0ea0ff1cfc188c6fd49fa068b80be78 (patch)
tree661b7cfee0d7f45f80fe8b03a1db5974be29428f /src/gallium/auxiliary/util/u_network.h
parent7bea40e56652a1ded4374d92fb340b454fbac475 (diff)
gallium/util: use sockets on PIPE_OS_UNIX in u_network
Instead of listing all the UNIX PIPE_OS platforms just use PIPE_OS_UNIX. Makes BSD sockets available on PIPE_OS_BSD. Signed-off-by: Jonathan Gray <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util/u_network.h')
-rw-r--r--src/gallium/auxiliary/util/u_network.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gallium/auxiliary/util/u_network.h b/src/gallium/auxiliary/util/u_network.h
index 61fe9a3c60f..2b7ce3f4bd2 100644
--- a/src/gallium/auxiliary/util/u_network.h
+++ b/src/gallium/auxiliary/util/u_network.h
@@ -4,10 +4,7 @@
#include "pipe/p_compiler.h"
-#if defined(PIPE_SUBSYSTEM_WINDOWS_USER)
-# define PIPE_HAVE_SOCKETS
-#elif defined(PIPE_OS_LINUX) || defined(PIPE_OS_HAIKU) || \
- defined(PIPE_OS_APPLE) || defined(PIPE_OS_SOLARIS)
+#if defined(PIPE_SUBSYSTEM_WINDOWS_USER) || defined(PIPE_OS_UNIX)
# define PIPE_HAVE_SOCKETS
#endif