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

Jung-uk Kim jkim at FreeBSD.org
Fri Jul 7 20:03:57 UTC 2017


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 <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>?

Okay, attached.  Thanks!

Jung-uk Kim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xshmfence_futex.h.patch
Type: text/x-patch
Size: 191 bytes
Desc: not available
URL: <https://lists.x.org/archives/xorg-devel/attachments/20170707/314ecbb7/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.x.org/archives/xorg-devel/attachments/20170707/314ecbb7/attachment.sig>


More information about the xorg-devel mailing list