[Xcb] [PATCH 2/2] Add #include <sys/socket.h> to xcb_conn.c
Jamey Sharp
jamey at minilop.net
Mon Apr 4 20:52:56 PDT 2011
Seems to build fine with this patch on Linux too, so sure, that sounds good. :-)
Reviewed-by: Jamey Sharp <jamey at minilop.net>
On Mon, Apr 4, 2011 at 8:26 PM, Alan Coopersmith
<alan.coopersmith at oracle.com> wrote:
> 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
>
> _______________________________________________
> Xcb mailing list
> Xcb at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xcb
>
More information about the Xcb
mailing list