From: Po Lu Date: Sat, 14 Jan 2023 14:14:10 +0000 (+0800) Subject: Drop unneeded changes to gnulib X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=498f207c86437da346c9180de40bd6d336407cc5;p=emacs.git Drop unneeded changes to gnulib * xcompile/lib/fpending.c (__fpending): * xcompile/lib/open.c: * xcompile/lib/unistd.c (_GL_UNISTD_INLINE): Remove Android patches. --- diff --git a/xcompile/lib/fpending.c b/xcompile/lib/fpending.c index 62716b90965..afa840b8512 100644 --- a/xcompile/lib/fpending.c +++ b/xcompile/lib/fpending.c @@ -33,15 +33,13 @@ size_t __fpending (FILE *fp) { -#if defined __ANDROID__ - return 0; /* Most systems provide FILE as a struct and the necessary bitmask in , because they need it for implementing getc() and putc() as fast macros. */ -#elif defined _IO_EOF_SEEN || defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 +#if defined _IO_EOF_SEEN || defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */ return fp->_IO_write_ptr - fp->_IO_write_base; -#elif defined __sferror || defined __DragonFly__ +#elif defined __sferror || defined __DragonFly__ || defined __ANDROID__ /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin < 1.7.34, Minix 3, Android */ return fp->_p - fp->_bf._base; #elif defined __EMX__ /* emx+gcc */ diff --git a/xcompile/lib/open.c b/xcompile/lib/open.c index 5c95d2b8c3c..7ec8fdc35dc 100644 --- a/xcompile/lib/open.c +++ b/xcompile/lib/open.c @@ -40,11 +40,7 @@ orig_open (const char *filename, int flags, mode_t mode) /* Specification. */ /* Write "fcntl.h" here, not , otherwise OSF/1 5.1 DTK cc eliminates this include because of the preliminary #include above. */ -#ifdef __ANDROID__ -#include -#else #include "fcntl.h" -#endif #include "cloexec.h" diff --git a/xcompile/lib/unistd.c b/xcompile/lib/unistd.c index 98bdb4e265d..be7a8255033 100644 --- a/xcompile/lib/unistd.c +++ b/xcompile/lib/unistd.c @@ -18,5 +18,5 @@ #include #define _GL_UNISTD_INLINE _GL_EXTERN_INLINE -#include +#include "unistd.h" typedef int dummy;