mirror of
https://github.com/michaelrsweet/mxml.git
synced 2024-11-24 11:25:30 +00:00
Conditionally check for EINTR (STR #33)
This commit is contained in:
parent
cc5890089d
commit
fe9a9b251c
5
CHANGES
5
CHANGES
@ -1,10 +1,13 @@
|
||||
CHANGES - 12/02/2005
|
||||
CHANGES - 12/07/2005
|
||||
--------------------
|
||||
|
||||
CHANGES IN Mini-XML 2.3
|
||||
|
||||
- Added two exceptions to the LGPL to support static
|
||||
linking of applications against Mini-XML.
|
||||
- Added conditional check for EINTR error code for
|
||||
certain Windows compilers that do not define it (STR
|
||||
#33)
|
||||
- The mxmldoc program now generates correct HTML 4.0
|
||||
output (previously it generated invalid XHTML...)
|
||||
- The mxmldoc program now supports "@deprecated@,
|
||||
|
@ -10,6 +10,10 @@
|
||||
<li>Added two exceptions to the LGPL to support static
|
||||
linking of applications against Mini-XML.</li>
|
||||
|
||||
<li>Added conditional check for EINTR error code for
|
||||
certain Windows compilers that do not define it (STR
|
||||
#33)</li>
|
||||
|
||||
<li>The mxmldoc program now generates correct HTML 4.0
|
||||
output (previously it generated invalid XHTML...)</li>
|
||||
|
||||
|
@ -31,7 +31,7 @@ cd mxml-$version
|
||||
|
||||
echo "Removing Subversion files and directories..."
|
||||
|
||||
rm -f makesrcdist TODO
|
||||
rm -f makesrcdist TODO mvalidate.c
|
||||
rm -rf www
|
||||
|
||||
cd ..
|
||||
|
@ -930,7 +930,11 @@ mxml_fd_read(mxml_fdbuf_t *buf) /* I - File descriptor buffer */
|
||||
*/
|
||||
|
||||
while ((bytes = read(buf->fd, buf->buffer, sizeof(buf->buffer))) < 0)
|
||||
#ifdef EINTR
|
||||
if (errno != EAGAIN && errno != EINTR)
|
||||
#else
|
||||
if (errno != EAGAIN)
|
||||
#endif /* EINTR */
|
||||
return (-1);
|
||||
|
||||
if (bytes == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user