diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-12-24 14:11:38 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-12-24 14:11:38 +0000 |
commit | de49812990871e1705b64051c35161d5e6400269 (patch) | |
tree | 5e1e8fcb0ff4579dbd22a1bfee28a6b97dc8aaeb /dev-lang/icon/files/icon-9.5.1-fpoll.patch | |
parent | 536c3711867ec947c1738f2c4b96f22e4863322d (diff) |
gentoo resync : 24.12.2018
Diffstat (limited to 'dev-lang/icon/files/icon-9.5.1-fpoll.patch')
-rw-r--r-- | dev-lang/icon/files/icon-9.5.1-fpoll.patch | 27 |
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 000000000000..d2a4d5f33d21 --- /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 */ |