projects
/
openwrt-github
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
perf: fix strerror_r override detection, apparently part of tools/ relies on non...
[openwrt-github/.git]
/
package
/
devel
/
perf
/
musl-compat.h
diff --git
a/package/devel/perf/musl-compat.h
b/package/devel/perf/musl-compat.h
index d0fa7810fa8e95de825bae8ed63d00c1b9735128..458915d5eb85106b62a8943330a68c0b8be258e3 100644
(file)
--- a/
package/devel/perf/musl-compat.h
+++ b/
package/devel/perf/musl-compat.h
@@
-4,7
+4,6
@@
#ifndef __ASSEMBLER__
#include <sys/ioctl.h>
#ifndef __ASSEMBLER__
#include <sys/ioctl.h>
-#include <string.h>
#include <unistd.h>
#include <stdio.h>
#include <syscall.h>
#include <unistd.h>
#include <stdio.h>
#include <syscall.h>
@@
-16,16
+15,6
@@
#undef _IOC
#undef _IO
#undef _IOC
#undef _IO
-/* Change XSI compliant version into GNU extension hackery */
-static inline char *
-gnu_strerror_r(int err, char *buf, size_t buflen)
-{
- if (strerror_r(err, buf, buflen))
- return NULL;
- return buf;
-}
-#define strerror_r gnu_strerror_r
-
#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)