diff mbox series

keytable: Fix missing inclusion of argp.h

Message ID 20200709174831.14134-1-ismael@iodev.co.uk (mailing list archive)
State New, archived
Headers show
Series keytable: Fix missing inclusion of argp.h | expand

Commit Message

Ismael Luceno July 9, 2020, 5:48 p.m. UTC
error_t is only defined by argp.h on non-glibc systems.

Signed-off-by: Ismael Luceno <ismael@iodev.co.uk>
---
 utils/keytable/bpf_load.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Sean Young July 10, 2020, 3:27 p.m. UTC | #1
Hi,

On Thu, Jul 09, 2020 at 07:48:31PM +0200, Ismael Luceno wrote:
> error_t is only defined by argp.h on non-glibc systems.
> 
> Signed-off-by: Ismael Luceno <ismael@iodev.co.uk>
> ---
>  utils/keytable/bpf_load.c | 1 +
>  1 file changed, 1 insertion(+)

Thank you, this does indeed fix the BPF build on alpine linux. I've
push the patch to master and the stable-1.20 branch.

Sean

> 
> diff --git a/utils/keytable/bpf_load.c b/utils/keytable/bpf_load.c
> index 9f64cf4e91e8..7ae9af4a57be 100644
> --- a/utils/keytable/bpf_load.c
> +++ b/utils/keytable/bpf_load.c
> @@ -13,6 +13,7 @@
>  #include <stdlib.h>
>  #include <linux/bpf.h>
>  #include <assert.h>
> +#include <argp.h>
>  #include "keymap.h"
>  #include "bpf.h"
>  #include "bpf_load.h"
> -- 
> 2.27.0
diff mbox series

Patch

diff --git a/utils/keytable/bpf_load.c b/utils/keytable/bpf_load.c
index 9f64cf4e91e8..7ae9af4a57be 100644
--- a/utils/keytable/bpf_load.c
+++ b/utils/keytable/bpf_load.c
@@ -13,6 +13,7 @@ 
 #include <stdlib.h>
 #include <linux/bpf.h>
 #include <assert.h>
+#include <argp.h>
 #include "keymap.h"
 #include "bpf.h"
 #include "bpf_load.h"