keytable: Fix missing inclusion of argp.h
Commit Message
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
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
@@ -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"