mirror of
git://slackware.nl/current.git
synced 2024-12-28 09:59:53 +01:00
21 lines
881 B
Diff
21 lines
881 B
Diff
|
--- ./lib/fseeko.c.orig 2015-05-30 10:34:54.000000000 -0500
|
||
|
+++ ./lib/fseeko.c 2018-09-18 19:01:59.959070461 -0500
|
||
|
@@ -47,7 +47,7 @@
|
||
|
#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 @@
|
||
|
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__
|