[lkml]   [2018]   [Oct]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [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 <> 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:

-- Steve

 \ /
  Last update: 2018-10-05 18:34    [W:0.099 / U:0.632 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site