projects
/
openwrt
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
layerscape: move fman/rcw/ppfe packages to layerscape/
[openwrt/.git]
/
package
/
devel
/
perf
/
musl-compat.h
diff --git
a/package/devel/perf/musl-compat.h
b/package/devel/perf/musl-compat.h
index ecfbec6a29144e26e2c53a6cff9beccb7cebfe42..83aa00a7c8f643668e55416a55779ec7be5166b3 100644
(file)
--- a/
package/devel/perf/musl-compat.h
+++ b/
package/devel/perf/musl-compat.h
@@
-1,12
+1,12
@@
#ifndef __PERF_MUSL_COMPAT_H
#define __PERF_MUSL_COMPAT_H
#ifndef __PERF_MUSL_COMPAT_H
#define __PERF_MUSL_COMPAT_H
+#ifndef __ASSEMBLER__
+
#include <sys/ioctl.h>
#include <sys/ioctl.h>
-#include <
string
.h>
+#include <
asm/unistd
.h>
#include <unistd.h>
#include <stdio.h>
#include <unistd.h>
#include <stdio.h>
-#include <syscall.h>
-#include <sched.h>
#undef _IOWR
#undef _IOR
#undef _IOWR
#undef _IOR
@@
-14,10
+14,6
@@
#undef _IOC
#undef _IO
#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)
#define _SC_LEVEL1_DCACHE_LINESIZE -1
static inline long sysconf_wrap(int name)
@@
-43,20
+39,5
@@
static inline long sysconf_wrap(int name)
#define sysconf(_n) sysconf_wrap(_n)
#define sysconf(_n) sysconf_wrap(_n)
-static inline int compat_sched_getcpu(void)
-{
-#ifdef __NR_getcpu
- unsigned int val;
-
- if (syscall(__NR_getcpu, &val))
- return -1;
-
- return val;
-#else
- return -1;
#endif
#endif
-}
-
-#define sched_getcpu compat_sched_getcpu
-
#endif
#endif