summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/xorg-lib/libxshmfence
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2018-01-29 15:39:20 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-01-29 23:05:11 +0000
commit88b3d730021107985ea749c92e52a323690f87dc (patch)
tree935a1bdc16f24016709fcf0831f34db4422c3599 /meta/recipes-graphics/xorg-lib/libxshmfence
parentcf4fc7804f093f5b570eaeaa39cb5dce5db1e379 (diff)
downloadopenembedded-core-contrib-88b3d730021107985ea749c92e52a323690f87dc.tar.gz
libxshmfence: fix build with glibc 2.27
With glibc 2.27 memfd_create() is behind a _GNU_SOURCE guard, so use AC_USE_SYSTEM_EXTENSIONS to define it. Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-graphics/xorg-lib/libxshmfence')
-rw-r--r--meta/recipes-graphics/xorg-lib/libxshmfence/extensions.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/meta/recipes-graphics/xorg-lib/libxshmfence/extensions.patch b/meta/recipes-graphics/xorg-lib/libxshmfence/extensions.patch
new file mode 100644
index 0000000000..4cc9e05ab5
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxshmfence/extensions.patch
@@ -0,0 +1,17 @@
+With glibc 2.27 memfd_create is behind a _GNU_SOURCE guard, so call
+AC_USE_SYSTEM_EXTENSIONS to get that defined.
+
+Upstream-Status: Submitted
+Signed-off-by: Ross Burton <ross.burton@intel.com>
+
+diff --git a/configure.ac b/configure.ac
+index 0c98875..ebf4dee 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -29,4 +29,6 @@ AC_CONFIG_SRCDIR([Makefile.am])
+ AC_CONFIG_HEADERS([config.h])
+
++AC_USE_SYSTEM_EXTENSIONS
++
+ # Initialize Automake
+ AM_INIT_AUTOMAKE([foreign dist-bzip2])