diff options
author | Eric Blake <eblake@redhat.com> | 2011-02-10 23:25:54 +0300 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2011-02-10 23:25:54 +0300 |
commit | 96b998db51b160a181041424c11588e7c4182b8d (patch) | |
tree | e324721c5c41053fd7c89092949a4bfb55c24229 /winsup/cygwin/errno.cc | |
parent | f6b802d9128ed05ea079baefad65384806bc4153 (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.cc | 2 |
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 |