<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">https://bugs.gentoo.org/898598
https://github.com/coreutils/gnulib/commit/3c136a2cc38d71083f123231a8b9ad4b01930789
--- a/configure
+++ b/configure
@@ -17084,6 +17084,8 @@ else
 #include &lt;unistd.h&gt;
 #include &lt;stdlib.h&gt;
 #include &lt;errno.h&gt;
+/* Android 4.3 declares fchownat() in &lt;sys/stat.h&gt; instead.  */
+#include &lt;sys/stat.h&gt;
 #include &lt;sys/types.h&gt;
 int
 main ()
@@ -17130,6 +17132,8 @@ else
 /* end confdefs.h.  */
 #include &lt;unistd.h&gt;
             #include &lt;fcntl.h&gt;
+            /* Android 4.3 declares fchownat() in &lt;sys/stat.h&gt; instead.  */
+            #include &lt;sys/stat.h&gt;
 
 int
 main ()
--- a/lib/unistd.in.h
+++ b/lib/unistd.in.h
@@ -113,6 +113,13 @@
 # include &lt;netdb.h&gt;
 #endif
 
+/* Android 4.3 declares fchownat in &lt;sys/stat.h&gt;, not in &lt;unistd.h&gt;.  */
+/* But avoid namespace pollution on glibc systems.  */
+#if (@GNULIB_FCHOWNAT@ || defined GNULIB_POSIXCHECK) &amp;&amp; defined __ANDROID__ \
+    &amp;&amp; !defined __GLIBC__
+# include &lt;sys/stat.h&gt;
+#endif
+
 /* MSVC defines off_t in &lt;sys/types.h&gt;.
    May also define off_t to a 64-bit type on native Windows.  */
 #if !@HAVE_UNISTD_H@ || @WINDOWS_64_BIT_OFF_T@
</pre></body></html>