diff options
author | Felix Fietkau <nbd@openwrt.org> | 2016-01-12 16:42:12 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2016-01-12 16:42:12 +0000 |
commit | f4b23769de50ab2172163d2135f2a82ae9396e30 (patch) | |
tree | b67a661012ab397d7c21989904e448df44333136 /package/devel/perf/musl-compat.h | |
parent | 5d80d2a694f872510e194e20209d586cc1cb9921 (diff) | |
download | master-187ad058-f4b23769de50ab2172163d2135f2a82ae9396e30.tar.gz master-187ad058-f4b23769de50ab2172163d2135f2a82ae9396e30.tar.bz2 master-187ad058-f4b23769de50ab2172163d2135f2a82ae9396e30.zip |
perf: fix strerror_r override detection, apparently part of tools/ relies on non-GNU behavior
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48221 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/devel/perf/musl-compat.h')
-rw-r--r-- | package/devel/perf/musl-compat.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/package/devel/perf/musl-compat.h b/package/devel/perf/musl-compat.h index d0fa7810fa..458915d5eb 100644 --- a/package/devel/perf/musl-compat.h +++ b/package/devel/perf/musl-compat.h @@ -4,7 +4,6 @@ #ifndef __ASSEMBLER__ #include <sys/ioctl.h> -#include <string.h> #include <unistd.h> #include <stdio.h> #include <syscall.h> @@ -16,16 +15,6 @@ #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) |