mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-02-22 17:32:43 +00:00
16 lines
509 B
Diff
16 lines
509 B
Diff
https://github.com/termux/termux-packages/issues/15852
|
|
diff --git a/src/hostid.c b/src/hostid.c
|
|
index e20c686..07476f1 100644
|
|
--- a/src/hostid.c
|
|
+++ b/src/hostid.c
|
|
@@ -70,6 +70,9 @@ main (int argc, char **argv)
|
|
usage (EXIT_FAILURE);
|
|
}
|
|
|
|
+#ifdef __ANDROID__
|
|
+# define gethostid() (0L)
|
|
+#endif
|
|
/* POSIX says gethostid returns a "32-bit identifier" but is silent
|
|
whether it's sign-extended. Turn off any sign-extension. This
|
|
is a no-op unless unsigned int is wider than 32 bits. */
|