keymap.h needs sys/types.h and argp.h
PATCH 1/1 keymap.h needs sys/types.h and argp.h
Fixes:
keymap.h:23:2: error: unknown type name ‘u_int32_t’ keymap.h:36:1: error: unknown type name ‘error_t’
--- utils/common/keymap.c | 2 ++ utils/ir-ctl/bpf_encoder.c | 1 + 2 files changed, 3 insertions(+)
utils/common/keymap.c +2 -0
@@ -9,6 +9,8 @@#include <string.h> #include <limits.h> #include <stdbool.h> +#include <sys/types.h> +#include <argp.h> #include "keymap.h" #include "toml.h"
utils/ir-ctl/bpf_encoder.c +1 -0
@@ -5,6 +5,7 @@#include <errno.h> #include <string.h> #include <sys/types.h> +#include <argp.h> #include "keymap.h"
Signature · 1 line
2.24.0
Hi Peter,
Quoted 4 lines · Peter Seiderer
Fixes:
keymap.h:23:2: error: unknown type name ‘u_int32_t’ keymap.h:36:1: error: unknown type name ‘error_t’
It would be nice to know where/how you are encountering these errors. ir-ctl with these changes are building fine on Fedora and Debian (unstable).
Thanks,
Sean
Quoted 35 lines
Signed-off-by Peter Seiderer <[email protected]>--- utils/common/keymap.c | 2 ++ utils/ir-ctl/bpf_encoder.c | 1 + 2 files changed, 3 insertions(+)utils/common/keymap.c +2
-0@@ -9,6 +9,8 @@#include <string.h> #include <limits.h> #include <stdbool.h> +#include <sys/types.h> +#include <argp.h> #include "keymap.h" #include "toml.h" utils/ir-ctl/bpf_encoder.c +1
-0@@ -5,6 +5,7 @@#include <errno.h> #include <string.h> #include <sys/types.h> +#include <argp.h> #include "keymap.h" Signature · 1 line
2.24.0
Hello Sean,
Quoted 10 lines · Sean Young
Hi Peter,
Quoted 4 lines · Peter Seiderer
Fixes:
keymap.h:23:2: error: unknown type name ‘u_int32_t’ keymap.h:36:1: error: unknown type name ‘error_t’
It would be nice to know where/how you are encountering these errors. ir-ctl with these changes are building fine on Fedora and Debian (unstable).
Sorry for the (very) brief commit log, the problem occurs with buildroot/musl-toolchain e.g. from the buildroot autobuild system [1], [2]...
Regards,
Peter
[1] http://autobuild.buildroot.net/results/f6d14fa0827d5eba9e020f238399396a121a45d6
[2] http://autobuild.buildroot.net/results/f6d14fa0827d5eba9e020f238399396a121a45d6/build-end.log
Quoted 39 lines
Thanks,
SeanQuoted 35 lines
Signed-off-by Peter Seiderer <[email protected]>--- utils/common/keymap.c | 2 ++ utils/ir-ctl/bpf_encoder.c | 1 + 2 files changed, 3 insertions(+)utils/common/keymap.c +2
-0@@ -9,6 +9,8 @@#include <string.h> #include <limits.h> #include <stdbool.h> +#include <sys/types.h> +#include <argp.h> #include "keymap.h" #include "toml.h" utils/ir-ctl/bpf_encoder.c +1
-0@@ -5,6 +5,7 @@#include <errno.h> #include <string.h> #include <sys/types.h> +#include <argp.h> #include "keymap.h" Signature · 1 line
2.24.0