Opt-in to modern OS features on Solaris, to get file descriptor passing
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 26 Jan 2011 18:24:03 +0000 (18:24 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 18 Jul 2011 18:14:47 +0000 (19:14 +0100)
Surely it's broken to define SCM_RIGHTS but not the necessary structs to
do something useful with it, but whatever.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=33465
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
configure.ac

index a768070..a4c2185 100644 (file)
@@ -1231,6 +1231,9 @@ case $host_os in
     solaris*)
         # Solaris' C library apparently needs these runes to be threadsafe...
         CFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT"
+        # ... and this opt-in to get file descriptor passing support
+        CFLAGS="$CFLAGS -D_XOPEN_SOURCE=500"
+        ;;
 esac
 
 ### Doxygen Documentation