Skip to contentSkip to conversation

Move some includes to the implementation in order to reduce their scope.

PATCH New Magnus Fromreide 1 participant 1 message Jul 25, 2012

lore
Share & tools
lore

Magnus Fromreide

author
#0 lore raw

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
index 102e224..9a30e9f 100644
@@ -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
index 92a38b8..a28a570 100644
@@ -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