Blame SOURCES/fseterr-update-20180815.patch

edde2e
diff -ru libunistring-0.9.9.orig/lib/fseterr.c libunistring-0.9.9/lib/fseterr.c
edde2e
--- libunistring-0.9.9.orig/lib/fseterr.c	2018-02-28 17:07:03.000000000 +0100
edde2e
+++ libunistring-0.9.9/lib/fseterr.c	2018-08-15 16:40:53.419266090 +0200
edde2e
@@ -1,20 +1,11 @@
edde2e
 /* Set the error indicator of a stream.
edde2e
    Copyright (C) 2007-2018 Free Software Foundation, Inc.
edde2e
 
edde2e
-   This program is free software: you can redistribute it and/or
edde2e
-   modify it under the terms of either:
edde2e
+   This program is free software: you can redistribute it and/or modify
edde2e
+   it under the terms of the GNU General Public License as published by
edde2e
+   the Free Software Foundation; either version 3 of the License, or
edde2e
+   (at your option) any later version.
edde2e
 
edde2e
-     * the GNU Lesser General Public License as published by the Free
edde2e
-       Software Foundation; either version 3 of the License, or (at your
edde2e
-       option) any later version.
edde2e
-
edde2e
-   or
edde2e
-
edde2e
-     * the GNU General Public License as published by the Free
edde2e
-       Software Foundation; either version 2 of the License, or (at your
edde2e
-       option) any later version.
edde2e
-
edde2e
-   or both in parallel, as here.
edde2e
    This program is distributed in the hope that it will be useful,
edde2e
    but WITHOUT ANY WARRANTY; without even the implied warranty of
edde2e
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
edde2e
@@ -32,13 +23,17 @@
edde2e
 
edde2e
 #include "stdio-impl.h"
edde2e
 
edde2e
+/* This file is not used on systems that have the __fseterr function,
edde2e
+   namely musl libc.  */
edde2e
+
edde2e
 void
edde2e
 fseterr (FILE *fp)
edde2e
 {
edde2e
   /* Most systems provide FILE as a struct and the necessary bitmask in
edde2e
      <stdio.h>, because they need it for implementing getc() and putc() as
edde2e
      fast macros.  */
edde2e
-#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
edde2e
+#if defined _IO_EOF_SEEN || defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1
edde2e
+  /* GNU libc, BeOS, Haiku, Linux libc5 */
edde2e
   fp->_flags |= _IO_ERR_SEEN;
edde2e
 #elif defined __sferror || defined __DragonFly__ || defined __ANDROID__
edde2e
   /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin, Minix 3, Android */
edde2e
diff -ru libunistring-0.9.9.orig/lib/fseterr.h libunistring-0.9.9/lib/fseterr.h
edde2e
--- libunistring-0.9.9.orig/lib/fseterr.h	2018-02-28 17:07:03.000000000 +0100
edde2e
+++ libunistring-0.9.9/lib/fseterr.h	2018-08-15 16:40:53.419266090 +0200
edde2e
@@ -1,20 +1,11 @@
edde2e
 /* Set the error indicator of a stream.
edde2e
    Copyright (C) 2007, 2009-2018 Free Software Foundation, Inc.
edde2e
 
edde2e
-   This program is free software: you can redistribute it and/or
edde2e
-   modify it under the terms of either:
edde2e
+   This program is free software: you can redistribute it and/or modify
edde2e
+   it under the terms of the GNU General Public License as published by
edde2e
+   the Free Software Foundation; either version 3 of the License, or
edde2e
+   (at your option) any later version.
edde2e
 
edde2e
-     * the GNU Lesser General Public License as published by the Free
edde2e
-       Software Foundation; either version 3 of the License, or (at your
edde2e
-       option) any later version.
edde2e
-
edde2e
-   or
edde2e
-
edde2e
-     * the GNU General Public License as published by the Free
edde2e
-       Software Foundation; either version 2 of the License, or (at your
edde2e
-       option) any later version.
edde2e
-
edde2e
-   or both in parallel, as here.
edde2e
    This program is distributed in the hope that it will be useful,
edde2e
    but WITHOUT ANY WARRANTY; without even the implied warranty of
edde2e
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the