procps: fix build on ndk r26

[skip ci]
This commit is contained in:
Chongyun Lee 2023-11-20 11:23:21 +08:00
parent 756e352a42
commit 3f9b824e9c
1 changed files with 12 additions and 2 deletions

View File

@ -1,5 +1,15 @@
--- ./w.c.orig 2021-02-09 10:11:25.000000000 +0000
+++ ./w.c 2021-05-07 05:42:59.852135096 +0000
--- a/w.c
+++ b/w.c
@@ -57,6 +57,9 @@
#include <unistd.h>
#ifdef HAVE_UTMPX_H
# include <utmpx.h>
+#ifdef __ANDROID__
+# include <utmp.h>
+#endif
#else
# include <utmp.h>
#endif
@@ -207,13 +207,6 @@
if (ip_addresses) { /* -i switch used */