Messages in this thread | | | Date | Fri, 5 Oct 2018 12:34:05 -0400 | From | Steven Rostedt <> | Subject | Re: [PATCH v3] tools/lib/traceevent: Replace str_error_r() with an open coded implementation |
| |
On Fri, 05 Oct 2018 09:27:16 -0700 Colin McCabe <colin@cmccabe.xyz> wrote:
> Hmm. Did you consider setting the ifdefs you can set to always get the POSIX version of strerror_r? >
Actually, what we find the most convenient is to separate the function out of the file completely, and undef _GNU_SOURCE, which forces glibc to use the XSI-compliant one.
Here's the patch I used:
https://lore.kernel.org/lkml/20181005121816.484e654f@gandalf.local.home/T/#u
-- Steve
| |