diff options
author | Eric Anholt <eric@anholt.net> | 2018-08-01 13:49:50 -0700 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2018-08-02 10:27:33 -0400 |
commit | 7deaf990079b94c70d263d8f1e16bb954bd2917f (patch) | |
tree | cf3c42ca7419245f5774381657d9061cbeed92f8 | |
parent | e3e5265743a3536f15c8b7ae521848a646cdc189 (diff) |
meson: Automatically detect support for XTRANS_SEND_FDs.
The SCM_RIGHTS flag seems to be the thing that xtrans depends on, and
meson makes the check easy without needing a build option.
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | include/meson.build | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/meson.build b/include/meson.build index dfca3c340..9682827dd 100644 --- a/include/meson.build +++ b/include/meson.build @@ -156,8 +156,10 @@ conf_data.set('_XITYPEDEF_POINTER', '1') conf_data.set('LISTEN_TCP', get_option('listen_tcp')) conf_data.set('LISTEN_UNIX', get_option('listen_unix')) conf_data.set('LISTEN_LOCAL', get_option('listen_local')) -# XXX: Configurable? -conf_data.set('XTRANS_SEND_FDS', '1') + +if cc.has_header_symbol('sys/socket.h', 'SCM_RIGHTS') + conf_data.set('XTRANS_SEND_FDS', '1') +endif conf_data.set('TCPCONN', '1') conf_data.set('UNIXCONN', '1') |