Skip to contentSkip to conversation

keymap.h needs sys/types.h and argp.h

PATCH In review Peter Seiderer 2 participants 3 messages Dec 18, 2019 – Jan 6, 2020 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

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
index f574f24f..d06deb59 100644
@@ -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
index 82d12cc0..e3e705e7 100644
@@ -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
#1 lore raw

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
---
 utils/common/keymap.c      | 2 ++
 utils/ir-ctl/bpf_encoder.c | 1 +
 2 files changed, 3 insertions(+)
utils/common/keymap.c +2 -0
index f574f24f..d06deb59 100644
@@ -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
index 82d12cc0..e3e705e7 100644
@@ -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
#2 lore raw

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,
Sean

Quoted 35 lines
---
 utils/common/keymap.c      | 2 ++
 utils/ir-ctl/bpf_encoder.c | 1 +
 2 files changed, 3 insertions(+)
utils/common/keymap.c +2 -0
index f574f24f..d06deb59 100644
@@ -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
index 82d12cc0..e3e705e7 100644
@@ -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