mirror of
https://github.com/termux/termux-packages
synced 2024-06-14 01:36:39 +00:00
coreutils: -Werror=implicit-function-declaration
This commit is contained in:
parent
76aee696c3
commit
fcf596bd19
13
packages/coreutils/src-hostid.c.patch
Normal file
13
packages/coreutils/src-hostid.c.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
diff -u -r ../coreutils-8.27/src/hostid.c ./src/hostid.c
|
||||
--- ../coreutils-8.27/src/hostid.c 2017-01-01 23:34:24.000000000 +0100
|
||||
+++ ./src/hostid.c 2017-07-07 00:28:59.202840547 +0200
|
||||
@@ -75,7 +75,9 @@
|
||||
usage (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
+#ifndef __ANDROID__
|
||||
id = gethostid ();
|
||||
+#endif
|
||||
|
||||
/* POSIX says gethostid returns a "32-bit identifier" but is silent
|
||||
whether it's sign-extended. Turn off any sign-extension. This
|
Loading…
Reference in New Issue
Block a user