void-packages/srcpkgs/qv4l2/patches/musl.patch
Nathan Owens 6bc64d44bb qv4l2: update to 1.18.0
Signed-off-by: Nathan Owens <ndowens04@gmail.com>
2019-12-31 15:40:17 +01:00

74 lines
1.5 KiB
Diff

diff --git utils/ir-ctl/keymap.h utils/ir-ctl/keymap.h
index f2b2963..51e4440 100644
--- utils/ir-ctl/keymap.h
+++ utils/ir-ctl/keymap.h
@@ -1,6 +1,11 @@
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __KEYMAP_H
#define __KEYMAP_H
+#include <stdint.h>
+#ifndef __error_t_defined
+# define __error_t_defined 1
+typedef int error_t;
+#endif
struct keymap {
struct keymap *next;
@@ -20,16 +25,16 @@ struct protocol_param {
struct scancode_entry {
struct scancode_entry *next;
- u_int32_t scancode;
+ uint32_t scancode;
char *keycode;
};
struct raw_entry {
struct raw_entry *next;
- u_int32_t scancode;
- u_int32_t raw_length;
+ uint32_t scancode;
+ uint32_t raw_length;
char *keycode;
- u_int32_t raw[1];
+ uint32_t raw[1];
};
void free_keymap(struct keymap *map);
diff --git utils/keytable/keymap.h utils/keytable/keymap.h
index f2b2963..51e4440 100644
--- utils/keytable/keymap.h
+++ utils/keytable/keymap.h
@@ -1,6 +1,11 @@
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __KEYMAP_H
#define __KEYMAP_H
+#include <stdint.h>
+#ifndef __error_t_defined
+# define __error_t_defined 1
+typedef int error_t;
+#endif
struct keymap {
struct keymap *next;
@@ -20,16 +25,16 @@ struct protocol_param {
struct scancode_entry {
struct scancode_entry *next;
- u_int32_t scancode;
+ uint32_t scancode;
char *keycode;
};
struct raw_entry {
struct raw_entry *next;
- u_int32_t scancode;
- u_int32_t raw_length;
+ uint32_t scancode;
+ uint32_t raw_length;
char *keycode;
- u_int32_t raw[1];
+ uint32_t raw[1];
};
void free_keymap(struct keymap *map);