Conditionally check for EINTR (STR #33)

This commit is contained in:
Michael R Sweet 2005-12-07 15:01:08 +00:00
parent cc5890089d
commit fe9a9b251c
5 changed files with 14 additions and 3 deletions

View File

@ -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@,

View File

@ -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>

View File

@ -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 ..

View File

@ -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)

View File

@ -18,7 +18,7 @@
Summary: Miniature XML development library
Name: mxml
Version: 2.2.3
Version: 2.3
Release: 1
Copyright: GPL
Group: Development/Libraries