Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2011-02-10 23:25:54 +0300
committerEric Blake <eblake@redhat.com>2011-02-10 23:25:54 +0300
commit96b998db51b160a181041424c11588e7c4182b8d (patch)
treee324721c5c41053fd7c89092949a4bfb55c24229 /winsup/cygwin/errno.cc
parentf6b802d9128ed05ea079baefad65384806bc4153 (diff)
strerror_r: fix compilation bug in previous patch
* errno.cc (includes): Avoid compilation failure if <string.h> settles on wrong strerror_r signature.
Diffstat (limited to 'winsup/cygwin/errno.cc')
-rw-r--r--winsup/cygwin/errno.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/errno.cc b/winsup/cygwin/errno.cc
index 33a103859..8ee2a7563 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