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]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
This commit is contained in:
Arnaldo Carvalho de Melo 2017-04-26 15:27:52 -03:00
commit 7de96c3e75
2 changed files with 3 additions and 2 deletions

View file

@ -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>

View file

@ -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>