aboutsummaryrefslogtreecommitdiff
path: root/traceevent/event-parse.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2014-02-27 18:34:03 +0000
committerAlexandra Yates <alexandra.yates@linux.intel.com>2014-04-02 19:10:37 -0700
commitf4a66b3a2aa9abeff430327c53a701c31cfbfeab (patch)
treeedeb778369f935dc895191cb0dd093b6d9c03414 /traceevent/event-parse.c
parentcb809eeaa35f974d3975251e49e121d7dec8539b (diff)
event-parse: fix compilation warning
By default the XSI-compliant strerror_r is being used causing the warning: event-parse.c:5121:7: warning: assignment makes pointer from integer without a cast [enabled by default] msg = strerror_r(errnum, buf, buflen); ^ Instead, use the GNU-specific strerror_r to avoid this warning. Signed-off-by: Colin Ian King <colin.king@canonical.com>
Diffstat (limited to 'traceevent/event-parse.c')
-rw-r--r--traceevent/event-parse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/traceevent/event-parse.c b/traceevent/event-parse.c
index d50917e..6195f6f 100644
--- a/traceevent/event-parse.c
+++ b/traceevent/event-parse.c
@@ -23,6 +23,8 @@
* Frederic Weisbecker gave his permission to relicense the code to
* the Lesser General Public License.
*/
+#define _GNU_SOURCE
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>