summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCheyenne Wills <cwills@witznd.net>2018-10-28 19:10:29 -0600
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2018-12-02 12:32:47 -0800
commite6208724793683c9c07dd2741483d39797dca1a2 (patch)
tree3b6fd76bd6332c127c34a91189dd3bfd8f65ca54 /dev-lang/icon/files
parentnet-misc/youtube-dl: Version 2018.12.03 (diff)
downloadgentoo-e6208724793683c9c07dd2741483d39797dca1a2.tar.gz
gentoo-e6208724793683c9c07dd2741483d39797dca1a2.tar.bz2
gentoo-e6208724793683c9c07dd2741483d39797dca1a2.zip
dev-lang/icon: Fixes compile error with glibc 2.28
Added patch pending upstream patch approval Bug: https://bugs.gentoo.org/669330 Closes: https://github.com/gentoo/gentoo/pull/10288 Package-Manager: Portage-2.3.49, Repoman-2.3.11 Signed-off-by: Cheyenne Wills <cwills@witznd.net> Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'dev-lang/icon/files')
-rw-r--r--dev-lang/icon/files/icon-9.5.1-fpoll.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/dev-lang/icon/files/icon-9.5.1-fpoll.patch b/dev-lang/icon/files/icon-9.5.1-fpoll.patch
new file mode 100644
index 00000000000..d2a4d5f33d2
--- /dev/null
+++ b/dev-lang/icon/files/icon-9.5.1-fpoll.patch
@@ -0,0 +1,27 @@
+diff --git a/ipl/cfuncs/fpoll.c b/ipl/cfuncs/fpoll.c
+index 9230e18..33b8121 100644
+--- a/ipl/cfuncs/fpoll.c
++++ b/ipl/cfuncs/fpoll.c
+@@ -60,12 +60,9 @@ int fpoll(int argc, descriptor *argv) /*: await data from file */
+
+ /* 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__) /* New GCC library */
+ 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);
+@@ -92,7 +89,7 @@ int fpoll(int argc, descriptor *argv) /*: await data from file */
+
+ if (r > 0)
+ RetArg(1); /* success */
+- else if (r == 0)
++ else if (r == 0)
+ Fail; /* timeout */
+ else
+ ArgError(1, 214); /* I/O error */