4826a50
--- ./libmissing/fseeko.c	2017-12-06 01:07:11.202000000 +0100
4826a50
+++ ./libmissing/fseeko.c	2018-03-10 14:09:13.786668009 +0100
4826a50
@@ -1,18 +1,18 @@
4826a50
 /* An fseeko() function that, together with fflush(), is POSIX compliant.
4826a50
-   Copyright (C) 2007-2017 Free Software Foundation, Inc.
4826a50
+   Copyright (C) 2007-2018 Free Software Foundation, Inc.
4826a50
 
4826a50
    This program is free software; you can redistribute it and/or modify
4826a50
-   it under the terms of the GNU Lesser General Public License as published by
4826a50
-   the Free Software Foundation; either version 2.1, or (at your option)
4826a50
+   it under the terms of the GNU General Public License as published by
4826a50
+   the Free Software Foundation; either version 2, or (at your option)
4826a50
    any later version.
4826a50
 
4826a50
    This program is distributed in the hope that it will be useful,
4826a50
    but WITHOUT ANY WARRANTY; without even the implied warranty of
4826a50
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4826a50
-   GNU Lesser General Public License for more details.
4826a50
+   GNU General Public License for more details.
4826a50
 
4826a50
-   You should have received a copy of the GNU Lesser General Public License along
4826a50
-   with this program; if not, see <http://www.gnu.org/licenses/>.  */
4826a50
+   You should have received a copy of the GNU General Public License along
4826a50
+   with this program; if not, see <https://www.gnu.org/licenses/>.  */
4826a50
 
4826a50
 #include <config.h>
4826a50
 
4826a50
@@ -47,7 +47,8 @@
4826a50
 #endif
4826a50
 
4826a50
   /* These tests are based on fpurge.c.  */
4826a50
-#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
4826a50
+#if defined _IO_EOF_SEEN || defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1
4826a50
+  /* GNU libc, BeOS, Haiku, Linux libc5 */
4826a50
   if (fp->_IO_read_end == fp->_IO_read_ptr
4826a50
       && fp->_IO_write_ptr == fp->_IO_write_base
4826a50
       && fp->_IO_save_base == NULL)
4826a50
@@ -123,7 +124,8 @@
4826a50
           return -1;
4826a50
         }
4826a50
 
4826a50
-#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
4826a50
+#if defined _IO_EOF_SEEN || defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1
4826a50
+      /* GNU libc, BeOS, Haiku, Linux libc5 */
4826a50
       fp->_flags &= ~_IO_EOF_SEEN;
4826a50
       fp->_offset = pos;
4826a50
 #elif defined __sferror || defined __DragonFly__ || defined __ANDROID__