1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../gpm/hotfix.patch.musl
5 # Copyright (C) 2019 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- gpm-1.20.6/src/prog/display-buttons.c.vanilla 2019-02-07 08:52:43.740482433 +0000
18 +++ gpm-1.20.6/src/prog/display-buttons.c 2019-02-07 08:53:04.032482201 +0000
20 #include <stdio.h> /* printf() */
21 #include <time.h> /* time() */
22 #include <errno.h> /* errno */
23 +#include <sys/select.h>
24 #include <gpm.h> /* gpm information */
26 /* display resulting data */
27 --- gpm-1.20.6/src/prog/display-coords.c.vanilla 2019-02-07 08:53:16.444482060 +0000
28 +++ gpm-1.20.6/src/prog/display-coords.c 2019-02-07 08:53:24.320481970 +0000
30 #include <stdio.h> /* printf() */
31 #include <time.h> /* time() */
32 #include <errno.h> /* errno */
33 +#include <sys/select.h>
34 #include <gpm.h> /* gpm information */
36 /* display resulting data */
37 --- gpm-1.20.6/src/prog/gpm-root.y.vanilla 2019-02-07 08:54:55.056480936 +0000
38 +++ gpm-1.20.6/src/prog/gpm-root.y 2019-02-07 08:55:52.192480284 +0000
39 @@ -1198,10 +1198,11 @@
40 childaction.sa_handler=reap_children;
41 #if defined(__GLIBC__)
42 sigemptyset(&childaction.sa_mask);
43 + childaction.sa_flags=SA_INTERRUPT; /* need to break the select() call */
45 - childaction.sa_mask=0;
46 + //childaction.sa_mask=0;
47 + sigemptyset(&childaction.sa_mask);
48 #endif /* __GLIBC__ */
49 - childaction.sa_flags=SA_INTERRUPT; /* need to break the select() call */
50 sigaction(SIGCHLD,&childaction,NULL);
52 /*....................................... Connect and get your buffer */