qi: Update recipe examples using the current ones from Dragora
[dragora.git] / patches / procps-ng / musl-fixes.patch
blobd6ccd494ec48e0f9e2a68f4bfce84b68585d2578
1 Pulling in utmpx.h which does not have UT_HOSTSIZE, UT_LINESIZE & UT_NAMESIZE defined.
3 Causing:
4 w.c: In function 'print_from':
5 w.c:236:43: error: 'UT_HOSTSIZE' undeclared (first use in this function)
6 236 | print_display_or_interface(u->ut_host, UT_HOSTSIZE, fromlen - len);
7 | ^~~~~~~~~~~
8 w.c:236:43: note: each undeclared identifier is reported only once for each function it appears in
9 w.c: In function 'getproc':
10 w.c:357:12: error: 'UT_NAMESIZE' undeclared (first use in this function)
11 357 | char buf[UT_NAMESIZE + 1];
12 ....
14 proc/escape.c:237:30: error: 'CODESET' undeclared (first use in this function)
15 237 | char *enc = nl_langinfo(CODESET);
17 --- a/w.c
18 +++ b/w.c
19 @@ -55,11 +55,7 @@
20 #include <termios.h>
21 #include <time.h>
22 #include <unistd.h>
23 -#ifdef HAVE_UTMPX_H
24 -# include <utmpx.h>
25 -#else
26 -# include <utmp.h>
27 -#endif
28 +#include <utmp.h>
29 #include <arpa/inet.h>
31 static int ignoreuser = 0; /* for '-u' */
32 --- a/proc/escape.c
33 +++ b/proc/escape.c
34 @@ -21,6 +21,7 @@
35 #include <sys/types.h>
36 #include <string.h>
37 #include <limits.h>
38 +#include <langinfo.h>
39 #include "procps.h"
40 #include "escape.h"
41 #include "readproc.h"