From e072735c2cff858d993a97d75419f6103e3dea44 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Sun, 23 Sep 2018 11:14:38 -0300 Subject: [PATCH] findutils: fix build with glibc >= 2.27 --- srcpkgs/findutils/patches/gnulib-fseeko.patch | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 srcpkgs/findutils/patches/gnulib-fseeko.patch diff --git a/srcpkgs/findutils/patches/gnulib-fseeko.patch b/srcpkgs/findutils/patches/gnulib-fseeko.patch new file mode 100644 index 00000000000..6d4c75ac737 --- /dev/null +++ b/srcpkgs/findutils/patches/gnulib-fseeko.patch @@ -0,0 +1,21 @@ +--- gl/lib/fseeko.c ++++ gl/lib/fseeko.c +@@ -47,7 +47,7 @@ fseeko (FILE *fp, off_t offset, int whence) + #endif + + /* These tests are based on fpurge.c. */ +-#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */ ++#if defined _IO_EOF_SEEN || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */ + if (fp->_IO_read_end == fp->_IO_read_ptr + && fp->_IO_write_ptr == fp->_IO_write_base + && fp->_IO_save_base == NULL) +@@ -123,7 +123,7 @@ fseeko (FILE *fp, off_t offset, int whence) + return -1; + } + +-#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */ ++#if defined _IO_EOF_SEEN || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */ + fp->_flags &= ~_IO_EOF_SEEN; + fp->_offset = pos; + #elif defined __sferror || defined __DragonFly__ || defined __ANDROID__ +