aports/testing/gpm/03-gpmroot.patch
Isaac Dunham bd91ab871c Beat gpm with a stick until it builds.
* gpm.h is in src/headers/; some but not all rules allowed for this.
 * FD_ZERO, FD_SET, and fd_set are defined in <sys/select.h>
 * gpm-root had a number of bad assumptions about non-glibc systems.
2014-07-15 20:43:26 -05:00

27 lines
903 B
Diff

commit eb333988d937f3665348240c5551db3ec98fc679
Author: Isaac Dunham <ibid.ag@gmail.com>
Date: Tue Jul 15 18:18:26 2014 -0700
make gpm-root build
diff --git a/src/prog/gpm-root.y b/src/prog/gpm-root.y
index 069d801..3ad0d03 100644
--- a/src/prog/gpm-root.y
+++ b/src/prog/gpm-root.y
@@ -1196,12 +1196,10 @@ 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);
+#ifdef SA_INTERRUPT
childaction.sa_flags=SA_INTERRUPT; /* need to break the select() call */
+#endif
sigaction(SIGCHLD,&childaction,NULL);
/*....................................... Connect and get your buffer */