From d7d48bac73af77638957cfa91795b13c0b1b59b6 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Fri, 7 Jul 2017 00:31:19 +0200 Subject: [PATCH] coreutils: -Werror=implicit-function-declaration --- packages/coreutils/src-hostid.c.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 packages/coreutils/src-hostid.c.patch diff --git a/packages/coreutils/src-hostid.c.patch b/packages/coreutils/src-hostid.c.patch new file mode 100644 index 000000000..4dcdece22 --- /dev/null +++ b/packages/coreutils/src-hostid.c.patch @@ -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