summarylogtreecommitdiffstats
path: root/0001-glibc-sigemptyset.patch
diff options
context:
space:
mode:
authorJames P. Harvey2019-08-18 22:27:30 -0400
committerJames P. Harvey2019-08-18 23:09:19 -0400
commitb57d20780988b607b21b2bd1856e5fa5797b453c (patch)
tree8091b4cc51bcd9228477103f8539fcb792fca802 /0001-glibc-sigemptyset.patch
downloadaur-b57d20780988b607b21b2bd1856e5fa5797b453c.tar.gz
Clone from core/gpm, and rename to gpm-vm.
Diffstat (limited to '0001-glibc-sigemptyset.patch')
-rw-r--r--0001-glibc-sigemptyset.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/0001-glibc-sigemptyset.patch b/0001-glibc-sigemptyset.patch
new file mode 100644
index 000000000000..083e62c0e049
--- /dev/null
+++ b/0001-glibc-sigemptyset.patch
@@ -0,0 +1,29 @@
+From fdc42770596e25749f7e2ce0ea97882177397167 Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+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 <raj.khem@gmail.com>
+---
+ 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);
+