python3: update to 3.11.10
[openadk.git] / package / gpm / patches / patch-src_prog_gpm-root_y
blob786f7a6ece57beb40bd938938096d1d50f61938f
1 --- gpm-1.20.7.orig/src/prog/gpm-root.y 2012-10-26 23:21:38.000000000 +0200
2 +++ gpm-1.20.7/src/prog/gpm-root.y      2013-12-22 13:06:09.000000000 +0100
3 @@ -56,6 +56,9 @@
4  #define minor(dev) ((dev)&0xff)
5  #endif
6  
7 +#ifndef SA_INTERRUPT
8 +#define SA_INTERRUPT 0
9 +#endif
11  #define GPM_NULL_DEV "/dev/null"
13 @@ -1196,11 +1199,7 @@ int main(int argc, char **argv)
14                                                          LOG_DAEMON : LOG_USER);
15     /* reap your zombies */
16     childaction.sa_handler=reap_children;
17 -#if defined(__GLIBC__)
18 -   __sigemptyset(&childaction.sa_mask);
19 -#else /* __GLIBC__ */
20 -   childaction.sa_mask=0;
21 -#endif /* __GLIBC__ */
22 +   sigemptyset(&childaction.sa_mask);
23     childaction.sa_flags=SA_INTERRUPT; /* need to break the select() call */
24     sigaction(SIGCHLD,&childaction,NULL);