Pavel Strashkin writes:
> Passing UNIX FD was introduced in X/Open CAE Specification, Issue 4,
> Version 2 (XPG4v2) so you need to enable it at compile time.
> I've added "-D_XOPEN_SOURCE=500" and everything compiles without any error.
The fact that dbus fails to compile on Solaris, rather than failing the check in configure and compiling with fd-passing support missing, suggests that we're using more features than we check for, which is arguably a platform-independent bug.
Created attachment 42542 [details] [review]
Opt-in to modern OS features on Solaris, to get file descriptor passing
Surely it's broken to define SCM_RIGHTS but not the necessary structs to
do something useful with it, but whatever.
For the record, this is <http://lists.freedesktop.org/archives/dbus/2010-December/013846.html>.
Review of attachment 42542 [details] [review]:
@@ +1314,3 @@
+ # ... and this opt-in to get file descriptor passing support
+ CFLAGS="$CFLAGS -D_XOPEN_SOURCE=500"
Thanks, fixed in git for 1.4.12, 1.5.6.