summaryrefslogtreecommitdiff
path: root/package/findutils/patches/patch-gnulib_lib_fseeko_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-03-23 20:52:34 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2014-03-23 20:52:34 +0100
commit9e2fdf23756dc13ce89f0ca185a6223c02d3f14a (patch)
tree5d80a8872e75a637872b8987f0db21041e27263c /package/findutils/patches/patch-gnulib_lib_fseeko_c
parent15ce6d4a74407a920b82b0f7b7422a668a78f7c2 (diff)
parent52188df5ff2c0cc5a43230915d6bc09dd7c28a32 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/findutils/patches/patch-gnulib_lib_fseeko_c')
-rw-r--r--package/findutils/patches/patch-gnulib_lib_fseeko_c18
1 files changed, 18 insertions, 0 deletions
diff --git a/package/findutils/patches/patch-gnulib_lib_fseeko_c b/package/findutils/patches/patch-gnulib_lib_fseeko_c
new file mode 100644
index 000000000..aba9a1133
--- /dev/null
+++ b/package/findutils/patches/patch-gnulib_lib_fseeko_c
@@ -0,0 +1,18 @@
+--- findutils-4.4.2.orig/gnulib/lib/fseeko.c 2009-05-10 23:25:10.000000000 +0200
++++ findutils-4.4.2/gnulib/lib/fseeko.c 2014-03-23 16:35:34.000000000 +0100
+@@ -94,8 +94,14 @@ rpl_fseeko (FILE *fp, off_t offset, int
+ if ((fp->_Mode & _MWRITE ? fp->_Next == fp->_Buf : fp->_Next == fp->_Rend)
+ && fp->_Rback == fp->_Back + sizeof (fp->_Back)
+ && fp->_Rsave == NULL)
++#elif FUNC_FFLUSH_STDIN < 0 && 200809 <= _POSIX_VERSION
++ /* Cross-compiling to some other system advertising conformance to
++ POSIX.1-2008 or later. Assume fseeko and fflush work as advertised.
++ If this assumption is incorrect, please report the bug to
++ bug-gnulib. */
++ if (0)
+ #else
+- #error "Please port gnulib fseeko.c to your platform! Look at the code in fpurge.c, then report this to bug-gnulib."
++ #error "Please port gnulib fseeko.c to your platform! Look at the code in fseeko.c, then report this to bug-gnulib."
+ #endif
+ {
+ off_t pos = lseek (fileno (fp), offset, whence);