diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-10-14 13:11:31 -0400 |
---|---|---|
committer | Steven Rostedt <srostedt@redhat.com> | 2009-10-14 13:11:31 -0400 |
commit | 0c5718631784e62ab18d481ce87132ad297e6089 (patch) | |
tree | 39b87488c14818de826958c4c41d3331d6941c79 | |
parent | c7532db6549208d00c7a2555769296182a0cbe0d (diff) |
add #define _GNU_SOURCE for sscanf to work with %as
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
-rw-r--r-- | parse-events.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/parse-events.c b/parse-events.c index 7541af2..637d512 100644 --- a/parse-events.c +++ b/parse-events.c | |||
@@ -21,6 +21,7 @@ | |||
21 | * The parts for function graph printing was taken and modified from the | 21 | * The parts for function graph printing was taken and modified from the |
22 | * Linux Kernel that were written by Frederic Weisbecker. | 22 | * Linux Kernel that were written by Frederic Weisbecker. |
23 | */ | 23 | */ |
24 | #define _GNU_SOURCE | ||
24 | #include <stdio.h> | 25 | #include <stdio.h> |
25 | #include <stdlib.h> | 26 | #include <stdlib.h> |
26 | #include <string.h> | 27 | #include <string.h> |