From: Howard Chu Date: Wed, 29 Jul 2015 19:01:34 +0000 (+0100) Subject: ITS#8192 fix reference to EINTR on WIN32 from ITS#8106 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=572aff7e80809c1020ae92fd0a0d7b28c0b28825;p=thirdparty%2Fopenldap.git ITS#8192 fix reference to EINTR on WIN32 from ITS#8106 --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 80f6711434..6ccce2d3a2 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -3798,8 +3798,10 @@ retry_write: #endif if (rc != len) { rc = rc < 0 ? ErrCode() : EIO; +#ifndef _WIN323 if (rc == EINTR) goto retry_write; +#endif DPUTS("write failed, disk error?"); /* On a failure, the pagecache still contains the new data. * Write some old data back, to prevent it from being used.