Re: [PATCH 2/2] strerror_r-posix: work around cygwin 1.7.9

2011-06-08 Thread Eric Blake
On 06/08/2011 04:36 AM, Bruno Haible wrote: > Hi Eric, > >> the 'strerror' module in isolation will not replace strerror, but >> if strerror_r is in use for any other reason, then the two use >> separate buffers. > > Very nice. Good improvement. > > I'm applying a couple of follow-up tweaks: Th

Re: [PATCH 2/2] strerror_r-posix: work around cygwin 1.7.9

2011-06-08 Thread Bruno Haible
Hi Eric, > the 'strerror' module in isolation will not replace strerror, but > if strerror_r is in use for any other reason, then the two use > separate buffers. Very nice. Good improvement. I'm applying a couple of follow-up tweaks: - In gl_FUNC_STRERROR, we don't need to emit code in configu

[PATCH 2/2] strerror_r-posix: work around cygwin 1.7.9

2011-06-07 Thread Eric Blake
Cygwin __xpg_strerror_r clobbers strerror, until cygwin 1.7.10; in this case, we must replace strerror, but there was nothing in strerror.m4 finding fault with cygwin's native strerror. Solve this by splitting strerror_r.m4 into two parts, one for probing for the strerror_r bug, and one for replac