From 11a5a9d3570ca59f03b6f04ace1c0a30190695c9 Mon Sep 17 00:00:00 2001 From: Petr Vorel Date: Thu, 2 Nov 2017 20:48:34 +0100 Subject: [PATCH] gpm: fix build with glibc 2.26 Use sigemptyset() API instead of __sigemptyset(). __sigemptyset() has been removed from glibc public API headers in upcoming (2.26) release onwards. Patch taken from: https://github.com/telmich/gpm/pull/20/commits/fdc42770596e25749f7e2ce0ea97882177397167 Fixes: http://autobuild.buildroot.net/results/15e24f8c6a3ad2bfd198cc4fb094aeace7d1ee6a/ Signed-off-by: Petr Vorel Signed-off-by: Thomas Petazzoni --- ...mptyset-API-instead-of-__sigemptyset.patch | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 package/gpm/0004-Use-sigemptyset-API-instead-of-__sigemptyset.patch diff --git a/package/gpm/0004-Use-sigemptyset-API-instead-of-__sigemptyset.patch b/package/gpm/0004-Use-sigemptyset-API-instead-of-__sigemptyset.patch new file mode 100644 index 0000000000..01c7424a9d --- /dev/null +++ b/package/gpm/0004-Use-sigemptyset-API-instead-of-__sigemptyset.patch @@ -0,0 +1,33 @@ +From fdc42770596e25749f7e2ce0ea97882177397167 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sun, 25 Jun 2017 07:25:33 -0700 +Subject: [PATCH] Use sigemptyset API instead of __sigemptyset + +__sigemptyset has been removed from glibc public +API headers in upcoming (2.26) release onwards + +Signed-off-by: Khem Raj +Signed-off-by: Petr Vorel +--- + src/prog/gpm-root.y | 4 ---- + 1 file changed, 4 deletions(-) + +diff --git a/src/prog/gpm-root.y b/src/prog/gpm-root.y +index 5126c65..76c896c 100644 +--- a/src/prog/gpm-root.y ++++ b/src/prog/gpm-root.y +@@ -1196,11 +1196,7 @@ int main(int argc, char **argv) + LOG_DAEMON : LOG_USER); + /* reap your zombies */ + childaction.sa_handler=reap_children; +-#if defined(__GLIBC__) +- __sigemptyset(&childaction.sa_mask); +-#else /* __GLIBC__ */ + sigemptyset(&childaction.sa_mask); +-#endif /* __GLIBC__ */ + childaction.sa_flags=0; + sigaction(SIGCHLD,&childaction,NULL); + +-- +2.14.2 + -- 2.30.2