package: add a few extra packages
[openwrt-working-2016/.git] / package / devel / perf / musl-compat.h
index ecfbec6a29144e26e2c53a6cff9beccb7cebfe42..8ce97bea88091f69c2105745c778509502b927a0 100644 (file)
@@ -1,11 +1,12 @@
 #ifndef __PERF_MUSL_COMPAT_H
 #define __PERF_MUSL_COMPAT_H
 
+#ifndef __ASSEMBLER__
+
 #include <sys/ioctl.h>
-#include <string.h>
+#include <asm/unistd.h>
 #include <unistd.h>
 #include <stdio.h>
-#include <syscall.h>
 #include <sched.h>
 
 #undef _IOWR
 #undef _IOC
 #undef _IO
 
-/* Change XSI compliant version into GNU extension hackery */
-#define strerror_r(err, buf, buflen) \
-       (strerror_r(err, buf, buflen) ? NULL : buf)
-
 #define _SC_LEVEL1_DCACHE_LINESIZE -1
 
 static inline long sysconf_wrap(int name)
@@ -60,3 +57,4 @@ static inline int compat_sched_getcpu(void)
 #define sched_getcpu compat_sched_getcpu
 
 #endif
+#endif