[PATCH libxshmfence] futex: unbreak build on FreeBSD 11.0+
Julien Cristau
jcristau at debian.org
Fri Jul 7 19:37:19 UTC 2017
On Fri, Jul 7, 2017 at 16:31:07 +0200, Jan Beich wrote:
> From: Jung-uk Kim <jkim at FreeBSD.org>
> Date: Tue, 15 Apr 2014 17:08:46 +0000
>
> In file included from src/xshmfence_alloc.c:27:
> In file included from src/xshmfenceint.h:32:
> src/xshmfence_futex.h:40:39: error: use of undeclared identifier 'INT_MAX'
> return sys_futex(addr, UMTX_OP_WAKE, INT_MAX);
> ^
> 1 error generated.
>
> Signed-off-by: Jan Beich <jbeich at 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/xshmfence_futex.h
> +++ b/src/xshmfence_futex.h
> @@ -29,6 +29,7 @@
> #ifdef HAVE_UMTX
>
> #include <sys/types.h>
> +#include <sys/limits.h>
> #include <sys/umtx.h>
>
> static inline int sys_futex(void *addr, int op, int32_t val)
Can we make that <limits.h>?
Cheers,
Julien
More information about the xorg-devel
mailing list