From d189ee0167c4adfd06b0816e1ffcaaa31c65201a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Mon, 15 Oct 2018 22:06:00 +0200 Subject: main/libxshmfence: fix build failure The `-D_GNU_SOURCE` is needed for the memfd_create function prototype in `sys/memfd.h`. Without this change the build fails with the following error message: xshmfence_alloc.c:73:7: error: implicit declaration of function 'memfd_create' fd = memfd_create("xshmfence", MFD_CLOEXEC|MFD_ALLOW_SEALING); ^~~~~~~~~~~~ --- main/libxshmfence/APKBUILD | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/libxshmfence/APKBUILD b/main/libxshmfence/APKBUILD index 89f21cda0e..501645e209 100644 --- a/main/libxshmfence/APKBUILD +++ b/main/libxshmfence/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: pkgname=libxshmfence pkgver=1.2 -pkgrel=3 +pkgrel=4 pkgdesc="X11 shared memory fences" url="https://www.x.org/" arch="all" @@ -16,7 +16,7 @@ source="https://www.x.org/releases/individual/lib/libxshmfence-$pkgver.tar.bz2" build() { cd "$builddir" - ./configure \ + CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ -- cgit v1.2.3