From d5b146fec50d7aa126fe98323aeaee688d4af289 Mon Sep 17 00:00:00 2001 From: yonghong-song Date: Wed, 16 Jan 2019 17:16:50 -0800 Subject: [PATCH] add asm/errno.h to linux/err.h (#8) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Otherwise, we will have the following compilation error: /home/yhs/work/bcc-new/src/cc/libbpf/src/bpf_prog_linfo.c: In function ‘dissect_jited_func’: /home/yhs/work/bcc-new/src/cc/libbpf/src/bpf_prog_linfo.c:88:10: error: ‘EINVAL’ undeclared (first use in this function) return -EINVAL; The original linux/err.h at linux:tools/include directory does include "asm/errno.h" as well. Signed-off-by: Yonghong Song --- include/linux/err.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/err.h b/include/linux/err.h index 9289c24..a3db4cf 100644 --- a/include/linux/err.h +++ b/include/linux/err.h @@ -4,6 +4,7 @@ #define __LINUX_ERR_H #include +#include #define MAX_ERRNO 4095