Package: icon / 9.4.3-7

003-fix-ftbfs-with-glibc-2.28.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Étienne Mollier <etienne.mollier@mailoo.org>
Subject: Fix FTBFS with glibc 2.28
Bug-Debian: https://bugs.debian.org/915334

Based on this commit by Cheyenne Wills:

https://github.com/gtownsend/icon/commit/bfc4a6004d0d3984c8066289b8d8e563640c4ddd

--- a/ipl/cfuncs/fpoll.c
+++ b/ipl/cfuncs/fpoll.c
@@ -59,12 +59,9 @@
 
    /* check for data already in buffer */
    /* there's no legal way to do this in C; we cheat */
-#if defined(__GLIBC__) && defined(_STDIO_USES_IOSTREAM)	/* new GCC library */
+#if defined(__GLIBC__)
    if (f->_IO_read_ptr < f->_IO_read_end)
       RetArg(1);
-#elif defined(__GLIBC__)				/* old GCC library */
-   if (f->__bufp < f->__get_limit)
-      RetArg(1);
 #elif defined(_FSTDIO)					/* new BSD library */
    if (f->_r > 0)
       RetArg(1);