[Xcb] [PATCH 2/2] Add #include <sys/socket.h> to xcb_conn.c

Alan Coopersmith alan.coopersmith at oracle.com
Mon Apr 4 20:26:50 PDT 2011


Solves compiler warning on Solaris:
"xcb_conn.c", line 304: warning: implicit function declaration: shutdown

Also provides system definition of SHUT_RDWR on Solaris 11.

Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
 src/xcb_conn.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/xcb_conn.c b/src/xcb_conn.c
index a017c20..3ab5385 100644
--- a/src/xcb_conn.c
+++ b/src/xcb_conn.c
@@ -44,6 +44,7 @@
 #ifdef _WIN32
 #include "xcb_windefs.h"
 #else
+#include <sys/socket.h>
 #include <netinet/in.h>
 #endif /* _WIN32 */
 
-- 
1.7.3.2



More information about the Xcb mailing list