diff options
author | Colin Watson <cjwatson@debian.org> | 2019-08-26 16:24:25 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2019-08-26 16:24:25 +0100 |
commit | 4022480a2cbcd303c5fcb3547dab2896ae1915a9 (patch) | |
tree | aa7f325ed783df7e253f8474df7121c6f1f85ea2 /gl/lib/stdio.in.h | |
parent | 886374b96c0da5287b5a9eba5777cb2d9f0ea3d8 (diff) | |
parent | 1c9cb89a74a0e54309eff01adcac9775e8c0563a (diff) |
Import man-db_2.8.7.orig.tar.xz
Diffstat (limited to 'gl/lib/stdio.in.h')
-rw-r--r-- | gl/lib/stdio.in.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gl/lib/stdio.in.h b/gl/lib/stdio.in.h index acf29c4b..4a8aa555 100644 --- a/gl/lib/stdio.in.h +++ b/gl/lib/stdio.in.h @@ -118,6 +118,13 @@ # include <unistd.h> #endif +/* Android 4.3 declares renameat in <sys/stat.h>, not in <stdio.h>. */ +/* But in any case avoid namespace pollution on glibc systems. */ +#if (@GNULIB_RENAMEAT@ || defined GNULIB_POSIXCHECK) && defined __ANDROID__ \ + && ! defined __GLIBC__ +# include <sys/stat.h> +#endif + /* MSVC declares 'perror' in <stdlib.h>, not in <stdio.h>. We must include it before we #define perror rpl_perror. */ /* But in any case avoid namespace pollution on glibc systems. */ |