[PATCH libxshmfence v2] futex: unbreak build on FreeBSD 11.0+

2017-07-07 Thread Jan Beich
NT_MAX); ^ 1 error generated. Signed-off-by: Jan Beich <jbe...@freebsd.org> --- src/xshmfence_futex.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xshmfence_futex.h b/src/xshmfence_futex.h index ea96cf4..ccfdc67 100644 --- a/src/xshmf

Re: [PATCH xserver 1/2] shm, xwayland: prefer atomic close-on-exec without O_TMPFILE

2017-07-07 Thread Jan Beich
Julien Cristau <jcris...@debian.org> writes: > On Fri, Jul 7, 2017 at 16:31:48 +0200, Jan Beich wrote: >> -flags = fcntl(fd, F_GETFD); >> +#ifndef HAVE_MKOSTEMP >> +int flags = fcntl(fd, F_GETFD); > > Do we allow mixed declarations and code nowadays?

[PATCH xserver] dix: unbreak --with-dtrace (default) on FreeBSD 11.1+

2017-07-07 Thread Jan Beich
gmake[2]: Entering directory '/path/to/xserver/dix' /usr/sbin/dtrace -G -C -o dtrace-dix.o -s ../dix/Xserver.d .libs/atom.o ... dtrace: failed to compile script ../dix/Xserver.d: line 26: useless declaration gmake[2]: *** [Makefile:1007: dtrace-dix.o] Error 1 Signed-off-by: Jan Beich <

Re: [PATCH libxshmfence 2/2] alloc: close-on-exec without O_TMPFILE as well

2017-07-07 Thread Jan Beich
The patch is v2 of https://lists.x.org/archives/xorg-devel/2013-December/039482.html v1 leaked files, see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217676 but no one noticed because FreeBSD < 12.0 (drm-next) lacks DRI3 support. ___

[PATCH libxshmfence 2/2] alloc: close-on-exec without O_TMPFILE as well

2017-07-07 Thread Jan Beich
Signed-off-by: Jan Beich <jbe...@freebsd.org> --- configure.ac | 2 +- src/xshmfence_alloc.c | 13 + 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 0c98875..2d55890 100644 --- a/configure.ac +++ b/configure.ac @@ -89,7

[PATCH xserver 1/2] shm, xwayland: prefer atomic close-on-exec without O_TMPFILE

2017-07-07 Thread Jan Beich
Signed-off-by: Jan Beich <jbe...@freebsd.org> --- Xext/shm.c | 9 +++-- configure.ac| 2 +- include/dix-config.h.in | 3 +++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Xext/shm.c b/Xext/shm.c index 91ea90b14..6edeba6fb 100644 --- a/Xext

[PATCH libxshmfence] futex: unbreak build on FreeBSD 11.0+

2017-07-07 Thread Jan Beich
NT_MAX); ^ 1 error generated. Signed-off-by: Jan Beich <jbe...@freebsd.org> --- src/xshmfence_futex.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xshmfence_futex.h b/src/xshmfence_futex.h index ea96cf4..c1b743d 100644 --- a/src/xshmf