summaryrefslogtreecommitdiff
path: root/procps-ng/musl-fixes.patch
diff options
context:
space:
mode:
authorJohn Vogel <jvogel4@stny.rr.com>2023-04-24 09:14:10 -0400
committerJohn Vogel <jvogel4@stny.rr.com>2023-04-24 09:14:10 -0400
commit98b797ebec1a51d931d3df214571909af34a55bc (patch)
treeeb9cb9907f16ecae0a387768972ac255a14fead2 /procps-ng/musl-fixes.patch
parent5f3d31d1dd7a9045888c58fb15221ed946f67805 (diff)
downloadmy-aports-98b797ebec1a51d931d3df214571909af34a55bc.tar.gz
procps-ng: new aport fork
Adds utmps dependency.
Diffstat (limited to 'procps-ng/musl-fixes.patch')
-rw-r--r--procps-ng/musl-fixes.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/procps-ng/musl-fixes.patch b/procps-ng/musl-fixes.patch
new file mode 100644
index 0000000..dd599cf
--- /dev/null
+++ b/procps-ng/musl-fixes.patch
@@ -0,0 +1,29 @@
+Pulling in utmpx.h which does not have UT_HOSTSIZE, UT_LINESIZE & UT_NAMESIZE defined.
+
+Causing:
+w.c: In function 'print_from':
+w.c:236:43: error: 'UT_HOSTSIZE' undeclared (first use in this function)
+ 236 | print_display_or_interface(u->ut_host, UT_HOSTSIZE, fromlen - len);
+ | ^~~~~~~~~~~
+w.c:236:43: note: each undeclared identifier is reported only once for each function it appears in
+w.c: In function 'getproc':
+w.c:357:12: error: 'UT_NAMESIZE' undeclared (first use in this function)
+ 357 | char buf[UT_NAMESIZE + 1];
+....
+diff --git a/src/w.c b/src/w.c
+index 5e878f0..568db02 100644
+--- a/src/w.c
++++ b/src/w.c
+@@ -46,11 +46,7 @@
+ #include <termios.h>
+ #include <time.h>
+ #include <unistd.h>
+-#ifdef HAVE_UTMPX_H
+-# include <utmpx.h>
+-#else
+-# include <utmp.h>
+-#endif
++#include <utmp.h>
+ #include <arpa/inet.h>
+
+ #include "c.h"