comparison core/procps/patch-musl.patch @ 1287:8c73c712e598

core/procps: upgrad to 3.3.17
author David Demelier <markand@malikania.fr>
date Tue, 16 Nov 2021 14:49:07 +0100
parents
children
comparison
equal deleted inserted replaced
1286:53cb989f05ad 1287:8c73c712e598
1 Pulling in utmpx.h which does not have UT_HOSTSIZE, UT_LINESIZE & UT_NAMESIZE defined.
2
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 ....
13
14 proc/escape.c:237:30: error: 'CODESET' undeclared (first use in this function)
15 237 | char *enc = nl_langinfo(CODESET);
16
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>
30
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"