On 07/07/2017 15:37, Julien Cristau wrote: > On Fri, Jul 7, 2017 at 16:31:07 +0200, Jan Beich wrote: > >> From: Jung-uk Kim <[email protected]> >> 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 <[email protected]> >> --- >> 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>?
Okay, attached. Thanks! Jung-uk Kim
--- src/xshmfence_futex.h.orig 2014-06-17 20:46:42 UTC +++ src/xshmfence_futex.h @@ -28,6 +28,7 @@ #ifdef HAVE_UMTX +#include <limits.h> #include <sys/types.h> #include <sys/umtx.h>
signature.asc
Description: OpenPGP digital signature
_______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: https://lists.x.org/mailman/listinfo/xorg-devel
