musl-select.patch (1567B)
1 The FD_ISSET macro and fd_set are defined in sys/select.h 2 3 --- src/prog/display-buttons.c 2012-10-26 23:21:38.000000000 +0200 4 +++ src/prog/display-buttons.c 2015-06-22 15:40:19.594034730 +0200 5 @@ -36,7 +36,8 @@ 6 #include <stdio.h> /* printf() */ 7 #include <time.h> /* time() */ 8 #include <errno.h> /* errno */ 9 -#include <gpm.h> /* gpm information */ 10 +#include <sys/select.h> /* FD_ISSET */ 11 +#include "headers/gpm.h" /* gpm information */ 12 13 /* display resulting data */ 14 int display_data(Gpm_Event *event, void *data) 15 --- src/prog/display-coords.c 2012-10-26 23:21:38.000000000 +0200 16 +++ src/prog/display-coords.c 2015-06-22 15:41:05.433032252 +0200 17 @@ -37,7 +37,8 @@ 18 #include <stdio.h> /* printf() */ 19 #include <time.h> /* time() */ 20 #include <errno.h> /* errno */ 21 -#include <gpm.h> /* gpm information */ 22 +#include <sys/select.h> /* FD_ISSET */ 23 +#include "headers/gpm.h" /* gpm information */ 24 25 /* display resulting data */ 26 int display_data(Gpm_Event *event, void *data) 27 --- src/prog/open_console.c 2012-10-26 23:21:38.000000000 +0200 28 +++ src/prog/open_console.c 2015-06-22 15:40:35.002033897 +0200 29 @@ -22,6 +22,7 @@ 30 #include "headers/message.h" /* messaging in gpm */ 31 #include "headers/daemon.h" /* daemon internals */ 32 #include <fcntl.h> 33 +#include <sys/select.h> 34 35 int open_console(const int mode) 36 {