Enable XTRANS_SEND_FDS on Solaris too.
Requires passing through the __EXTENSIONS__ and _XOPEN_SOURCE defines in order to expose the msg_control members in struct msghdr. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
c4c154d18e
commit
5b02d5b7aa
|
@ -31,6 +31,7 @@ RELEASE_DATE="2013-10-31"
|
||||||
RELEASE_NAME="Bom Retiro"
|
RELEASE_NAME="Bom Retiro"
|
||||||
AC_CONFIG_SRCDIR([Makefile.am])
|
AC_CONFIG_SRCDIR([Makefile.am])
|
||||||
AM_INIT_AUTOMAKE([foreign dist-bzip2])
|
AM_INIT_AUTOMAKE([foreign dist-bzip2])
|
||||||
|
AC_USE_SYSTEM_EXTENSIONS
|
||||||
|
|
||||||
# Require xorg-macros minimum of 1.14 for XORG_COMPILER_BRAND in XORG_DEFAULT_OPTIONS
|
# Require xorg-macros minimum of 1.14 for XORG_COMPILER_BRAND in XORG_DEFAULT_OPTIONS
|
||||||
m4_ifndef([XORG_MACROS_VERSION],
|
m4_ifndef([XORG_MACROS_VERSION],
|
||||||
|
@ -1096,7 +1097,7 @@ AC_ARG_ENABLE(xtrans-send-fds, AS_HELP_STRING([--disable-xtrans-send-fds], [Use
|
||||||
case "x$XTRANS_SEND_FDS" in
|
case "x$XTRANS_SEND_FDS" in
|
||||||
xauto)
|
xauto)
|
||||||
case "$host_os" in
|
case "$host_os" in
|
||||||
linux*)
|
linux*|solaris*)
|
||||||
XTRANS_SEND_FDS=yes
|
XTRANS_SEND_FDS=yes
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|
|
@ -449,6 +449,14 @@
|
||||||
#include "dix-config-apple-verbatim.h"
|
#include "dix-config-apple-verbatim.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Enable general extensions on Solaris. */
|
||||||
|
#ifndef __EXTENSIONS__
|
||||||
|
# undef __EXTENSIONS__
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Defined if needed to expose struct msghdr.msg_control */
|
||||||
|
#undef _XOPEN_SOURCE
|
||||||
|
|
||||||
/* Have support for X shared memory fence library (xshmfence) */
|
/* Have support for X shared memory fence library (xshmfence) */
|
||||||
#undef HAVE_XSHMFENCE
|
#undef HAVE_XSHMFENCE
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue