summaryrefslogtreecommitdiffstats
path: root/testing/gpm/03-gpmroot.patch
blob: fd3258c0c8be2c667b9d2eb062a7a767919d389a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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 */