Move some includes to the implementation in order to reduce their scope.
Magnus Fromreide
PATCH 2/2 Move some includes to the implementation in order to reduce their scope.
Signed-off-by Magnus Fromreide <magfr(a)lysator.liu.se>
--- src/perf/perf.cpp | 5 ++++- src/perf/perf_event.h | 4 ---- 2 files changed, 4 insertions(+), 5 deletions(-)
src/perf/perf.cpp +4 -1
@@ -23,6 +23,8 @@ * Arjan van de Ven <arjan(a)linux.intel.com> */ +#include "perf.h" + #include <iostream> #include <fstream>
@@ -35,11 +37,12 @@ #include <sys/types.h> #include <sys/stat.h> #include <sys/ioctl.h> +#include <linux/ioctl.h> +#include <sys/syscall.h> #include <fcntl.h> #include "perf_event.h" -#include "perf.h" #include "../lib.h" #include "../display.h"
src/perf/perf_event.h +0 -4
@@ -39,10 +39,6 @@#define _LINUX_PERF_EVENT_H#include <linux/types.h> -#include <linux/ioctl.h> -#include <asm/byteorder.h> -#include <sys/syscall.h> -/* * User-space ABI bits:
Signature · 1 line
1.7.10.4