This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: provide __xpg_strerror_r


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, errno.cc has to take efforts to ensure that it
doesn't conflict when implementing the GNU signature).

diff --git a/winsup/cygwin/errno.cc b/winsup/cygwin/errno.cc
index 33a1038..8ee2a75 100644
--- a/winsup/cygwin/errno.cc
+++ b/winsup/cygwin/errno.cc
@@ -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   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]