[patch libXmu] Fix OWNER_OS in XmuConvertStandardSelection() on Linux

Matthieu Herrb matthieu at herrb.eu
Tue Jan 14 22:38:17 UTC 2020


On Tue, Jan 14, 2020 at 11:32:46PM +0100, Matthieu Herrb wrote:
> It used to return BSD
> ---
>  src/CvtStdSel.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/src/CvtStdSel.c b/src/CvtStdSel.c
> index 36423c6..d462273 100644
> --- a/src/CvtStdSel.c
> +++ b/src/CvtStdSel.c
> @@ -89,6 +89,9 @@ in this Software without prior written authorization from The Open Group.
>  #ifdef CSRG_BASED
>  #define USE_UNAME
>  #endif
> +#ifdef __linux__
> +#define USE_UNAME
> +#endif
>  #endif /*X_OS_FILE*/
>  #ifdef USE_UNAME
>  #include <sys/utsname.h>
> -- 
> 2.24.1
>

BTW, https://gitlab.freedesktop.org/mherrb/tsel

can be used to query all supported targets for the selection in a
given application. Xterm is using XmuConvertStandardSelection, so
querying a selection owned by an xterm linked against a libxmu with my
patches can be used to test them.
-- 
Matthieu Herrb
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 793 bytes
Desc: not available
URL: <https://lists.x.org/archives/xorg-devel/attachments/20200114/18f38615/attachment.sig>


More information about the xorg-devel mailing list