ppc fix
[lttv.git] / ltt-usertrace / ltt / ltt-usertrace.h
index 7770f9580cd93a1a61c382b5b86074a131edcc32..90729c679f6e964fc2f1208d18e9046b14b0bfc4 100644 (file)
 
 #include <errno.h>
 #include <syscall.h>
-#include <linux/unistd.h>
 #include <string.h>
-#include <sys/types.h>
 #include <stdint.h>
-#ifdef powerpc
-#define __KERNEL__     /* Ugly hack : atomic.h is broken */
-#endif
-#include <asm/atomic.h>
+#include <sys/types.h>
+#include <linux/unistd.h>
+#if defined(__powerpc__) || defined(__powerpc64__)
 #include "ltt/ltt-usertrace-ppc.h"
-#ifdef powerpc
-#undef __KERNEL__      /* Ugly hack : atomic.h is broken */
+#else
+#include <asm/atomic.h>
 #endif
 
 #ifndef min
This page took 0.022865 seconds and 4 git commands to generate.