provide __xpg_strerror_r

Eric Blake
Thu Feb 10 20:23:00 GMT 2011

On 02/10/2011 12:58 PM, Christopher Faylor wrote:
> On Thu, Feb 10, 2011 at 10:37:45AM -0700, Eric Blake wrote:
>> Pushed, and squashed into minor version 236.  I've also updated
>> new-features.sgml.
> Thanks Eric.

Shoot - I pushed too early; I'm pushing this follow-up patch to fix the
temporary build breakage that I introduced (now that strerror_r defaults
to the POSIX signature, has to take efforts to ensure that it
doesn't conflict when implementing the GNU signature).

diff --git a/winsup/cygwin/ b/winsup/cygwin/
index 33a1038..8ee2a75 100644
--- a/winsup/cygwin/
+++ b/winsup/cygwin/
@@ -12,12 +12,14 @@ details. */
 #define _sys_nerr FOO_sys_nerr
 #define sys_nerr FOOsys_nerr
 #define _sys_errlist FOO_sys_errlist
+#define strerror_r FOO_strerror_r
 #include "winsup.h"
 #include "cygtls.h"
 #include "ntdll.h"
 #undef _sys_nerr
 #undef sys_nerr
 #undef _sys_errlist
+#undef strerror_r

 /* Table to map Windows error codes to Errno values.  */
 /* FIXME: Doing things this way is a little slow.  It's trivial to change

Eric Blake    +1-801-349-2682
Libvirt virtualization library

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the Cygwin-patches mailing list