diff options
author | Keith Packard <keithp@keithp.com> | 2013-11-03 10:08:15 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-11-11 15:12:50 -0800 |
commit | bee2ec54049377e0033d49abff20d7bd069c62aa (patch) | |
tree | 74564b09ff872e6d64820dc773d8e7bbece419d3 /include | |
parent | ea8acfe3e2f74a46c3f1e91809b4b99af18502b7 (diff) |
Xext: Enable MIT-SHM FD-passing request definitions only when possible
Check to see if xtrans FD passing is available and use that to
advertise the appropriate version of the SHM extension
Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/protocol-versions.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/protocol-versions.h b/include/protocol-versions.h index 5ceaeb012..95df8ce1a 100644 --- a/include/protocol-versions.h +++ b/include/protocol-versions.h @@ -93,7 +93,11 @@ /* SHM */ #define SERVER_SHM_MAJOR_VERSION 1 +#if XTRANS_SEND_FDS +#define SERVER_SHM_MINOR_VERSION 2 +#else #define SERVER_SHM_MINOR_VERSION 1 +#endif /* Sync */ #define SERVER_SYNC_MAJOR_VERSION 3 |