summaryrefslogtreecommitdiff
path: root/package/gpm/patches/patch-src_prog_gpm-root_y
diff options
context:
space:
mode:
Diffstat (limited to 'package/gpm/patches/patch-src_prog_gpm-root_y')
-rw-r--r--package/gpm/patches/patch-src_prog_gpm-root_y25
1 files changed, 25 insertions, 0 deletions
diff --git a/package/gpm/patches/patch-src_prog_gpm-root_y b/package/gpm/patches/patch-src_prog_gpm-root_y
new file mode 100644
index 000000000..786f7a6ec
--- /dev/null
+++ b/package/gpm/patches/patch-src_prog_gpm-root_y
@@ -0,0 +1,25 @@
+--- gpm-1.20.7.orig/src/prog/gpm-root.y 2012-10-26 23:21:38.000000000 +0200
++++ gpm-1.20.7/src/prog/gpm-root.y 2013-12-22 13:06:09.000000000 +0100
+@@ -56,6 +56,9 @@
+ #define minor(dev) ((dev)&0xff)
+ #endif
+
++#ifndef SA_INTERRUPT
++#define SA_INTERRUPT 0
++#endif
+
+ #define GPM_NULL_DEV "/dev/null"
+
+@@ -1196,11 +1199,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__ */
+- childaction.sa_mask=0;
+-#endif /* __GLIBC__ */
++ sigemptyset(&childaction.sa_mask);
+ childaction.sa_flags=SA_INTERRUPT; /* need to break the select() call */
+ sigaction(SIGCHLD,&childaction,NULL);
+