1 From e399540ab67ffe83ca3c4cb768a2f0f2f32a9057 Mon Sep 17 00:00:00 2001
2 From: Rosen Penev <rosenp@gmail.com>
3 Date: Sun, 5 Apr 2020 15:56:59 -0700
4 Subject: [PATCH] libelf: remove usage of sys/cdefs
6 sys/cdefs is a deprecated glibc header that is unavailable with other
7 libc implementations such as musl.
9 features.h under glibc includes sys/cdefs whereas it does not under musl.
11 Signed-off-by: Rosen Penev <rosenp@gmail.com>
13 lib/fixedsizehash.h | 1 -
14 libelf/elf.h | 10 ++++++----
15 2 files changed, 6 insertions(+), 5 deletions(-)
17 --- a/lib/fixedsizehash.h
18 +++ b/lib/fixedsizehash.h
23 -#include <sys/cdefs.h>
33 -#include <features.h>
40 /* Standard ELF types. */
42 @@ -4007,6 +4007,8 @@ enum
43 #define R_NDS32_TLS_TPOFF 102
44 #define R_NDS32_TLS_DESC 119