tools: libbpf: move library error code into a separate file

libbpf_strerror() depends on XSI-compliant (POSIX) version of
strerror_r(), which prevents us from using GNU-extensions in
libbpf.c, like reallocarray() or dup3().  Move error printing
code into a separate file to allow it to continue using POSIX
strerror_r().

No functional changes.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
This commit is contained in:
Jakub Kicinski
2018-07-10 14:43:04 -07:00
committed by Daniel Borkmann
parent c8406848ba
commit 8d13406c02
3 changed files with 75 additions and 49 deletions

View File

@@ -1 +1 @@
libbpf-y := libbpf.o bpf.o nlattr.o btf.o
libbpf-y := libbpf.o bpf.o nlattr.o btf.o libbpf_errno.o