1 Pulling in utmpx.h which does not have UT_HOSTSIZE, UT_LINESIZE & UT_NAMESIZE defined.
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);
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];
14 proc/escape.c:237:30: error: 'CODESET' undeclared (first use in this function)
15 237 | char *enc = nl_langinfo(CODESET);
29 #include <arpa/inet.h>
31 static int ignoreuser = 0; /* for '-u' */
35 #include <sys/types.h>
38 +#include <langinfo.h>