perf tools: Move HAS_BOOL define to where perl headers are used
tip-bot for Arnaldo Carvalho de Melo
merge botCommit-ID: 7de96c3e759e49b1d176722ed26c14c057bac34f Gitweb: http://git.kernel.org/tip/7de96c3e759e49b1d176722ed26c14c057bac34f Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Wed, 26 Apr 2017 15:27:52 -0300 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Wed, 26 Apr 2017 15:27:52 -0300
perf tools: Move HAS_BOOL define to where perl headers are used
This is a perl specific hack, so move it from util.h to where perl headers are used.
Cc Adrian Hunter <[email protected]>
Cc David Ahern <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Wang Nan <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/util/scripting-engines/trace-event-perl.c | 4 +++- tools/perf/util/util.h | 1 - 2 files changed, 3 insertions(+), 2 deletions(-)
tools/perf/util/scripting-engines/trace-event-perl.c +3 -1
@@ -28,7 +28,9 @@#include <linux/bitmap.h> #include <linux/time64.h> -#include "../util.h" +#include <stdbool.h> +/* perl needs the following define, right after including stdbool.h */ +#define HAS_BOOL #include <EXTERN.h> #include <perl.h>
tools/perf/util/util.h +0 -1
@@ -5,7 +5,6 @@#define _BSD_SOURCE 1/* glibc 2.20 deprecates _BSD_SOURCE in favour of _DEFAULT_SOURCE */ #define _DEFAULT_SOURCE 1 -#define HAS_BOOL #include <fcntl.h> #include <stdbool.h>