summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2018-02-22 19:23:38 +0100
committerMatt Turner <mattst88@gmail.com>2018-02-22 10:37:42 -0800
commit30d946bc7b522ada9ec2fdbd502f9e36aae21bba (patch)
tree11181b18d7215a69deca978a95762e0572b13d6b
parent517f21745c43883c1fd7128eeba3e2ae963cb779 (diff)
downloadxorg-lib-libxshmfence-30d946bc7b522ada9ec2fdbd502f9e36aae21bba.tar.gz
Fix missing <limits.h> include for HAVE_UMTX branch of futex
This fixes build on Gentoo/FreeBSD which failed due to undefined 'INT_MAX'. Signed-off-by: Michał Górny <mgorny@gentoo.org> Signed-off-by: Matt Turner <mattst88@gmail.com>
-rw-r--r--src/xshmfence_futex.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xshmfence_futex.h b/src/xshmfence_futex.h
index ea96cf4..673ac0e 100644
--- a/src/xshmfence_futex.h
+++ b/src/xshmfence_futex.h
@@ -30,6 +30,7 @@
#include <sys/types.h>
#include <sys/umtx.h>
+#include <limits.h>
static inline int sys_futex(void *addr, int op, int32_t val)
{