summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/mesa/files/0001-futex.h-Define-__NR_futex-if-it-does-not-exist.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/mesa/files/0001-futex.h-Define-__NR_futex-if-it-does-not-exist.patch')
-rw-r--r--meta/recipes-graphics/mesa/files/0001-futex.h-Define-__NR_futex-if-it-does-not-exist.patch10
1 files changed, 5 insertions, 5 deletions
diff --git a/meta/recipes-graphics/mesa/files/0001-futex.h-Define-__NR_futex-if-it-does-not-exist.patch b/meta/recipes-graphics/mesa/files/0001-futex.h-Define-__NR_futex-if-it-does-not-exist.patch
index 3b0bfa323b..e7d92197be 100644
--- a/meta/recipes-graphics/mesa/files/0001-futex.h-Define-__NR_futex-if-it-does-not-exist.patch
+++ b/meta/recipes-graphics/mesa/files/0001-futex.h-Define-__NR_futex-if-it-does-not-exist.patch
@@ -1,4 +1,4 @@
1From 253b042d2bf10e9abfa9cc508e0782aefd834145 Mon Sep 17 00:00:00 2001 1From 859bfc342d1db9b61c43f30d9aa27cea35ca7599 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 16 Oct 2020 11:03:47 -0700 3Date: Fri, 16 Oct 2020 11:03:47 -0700
4Subject: [PATCH] futex.h: Define __NR_futex if it does not exist 4Subject: [PATCH] futex.h: Define __NR_futex if it does not exist
@@ -18,12 +18,12 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
18 1 file changed, 4 insertions(+) 18 1 file changed, 4 insertions(+)
19 19
20diff --git a/src/util/futex.h b/src/util/futex.h 20diff --git a/src/util/futex.h b/src/util/futex.h
21index 43097f4..941b0ec 100644 21index 2a2a00c..92fc123 100644
22--- a/src/util/futex.h 22--- a/src/util/futex.h
23+++ b/src/util/futex.h 23+++ b/src/util/futex.h
24@@ -34,6 +34,10 @@ 24@@ -38,6 +38,10 @@
25 #include <sys/syscall.h> 25 #define SYS_futex SYS_futex_time64
26 #include <sys/time.h> 26 #endif
27 27
28+#if !defined(SYS_futex) && defined(SYS_futex_time64) 28+#if !defined(SYS_futex) && defined(SYS_futex_time64)
29+# define SYS_futex SYS_futex_time64 29+# define SYS_futex SYS_futex_time64