0001-keymap.h-add-missing-includes-to-fix-musl-build.patch 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. From baba68cdcb44fc11d0ba8ce2c13eb5b06bbd9b33 Mon Sep 17 00:00:00 2001
  2. From: Bernd Kuhls <bernd.kuhls@t-online.de>
  3. Date: Wed, 30 Oct 2019 07:15:23 +0100
  4. Subject: [PATCH] keymap.h: add missing includes to fix musl build
  5. Needed to fix these build errors:
  6. In file included from keymap.c:13:0:
  7. keymap.h:23:2: error: unknown type name 'u_int32_t'
  8. u_int32_t scancode;
  9. keymap.h:36:1: error: unknown type name 'error_t'
  10. error_t parse_keymap(char *fname, struct keymap **keymap, bool verbose);
  11. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
  12. ---
  13. Patch was not sent upstream due to broken mailing list setup:
  14. <majordomo@vger.kernel.org>: host vger.kernel.org[209.132.180.67] said: 553
  15. 5.7.1 Hello [xx.xx.xx.xx], for your MAIL FROM address
  16. <bernd.kuhls@t-online.de> policy analysis reported: Your address is not
  17. liked source for email (in reply to MAIL FROM command)
  18. Hello [xx.xx.xx.xx], for your MAIL FROM address <berndkuhls@hotmail.com>
  19. policy analysis reported: Your address is not liked source for email
  20. utils/common/keymap.h | 4 ++++
  21. 1 file changed, 4 insertions(+)
  22. diff --git a/utils/common/keymap.h b/utils/common/keymap.h
  23. index f2b29632..bb1edce9 100644
  24. --- a/utils/common/keymap.h
  25. +++ b/utils/common/keymap.h
  26. @@ -1,4 +1,8 @@
  27. /* SPDX-License-Identifier: GPL-2.0 */
  28. +
  29. +#include <argp.h>
  30. +#include <sys/types.h>
  31. +
  32. #ifndef __KEYMAP_H
  33. #define __KEYMAP_H
  34. diff -uNr v4l-utils-1.18.0.orig/utils/ir-ctl/keymap.h v4l-utils-1.18.0/utils/ir-ctl/keymap.h
  35. --- v4l-utils-1.18.0.orig/utils/ir-ctl/keymap.h 2019-09-22 11:22:54.000000000 +0200
  36. +++ v4l-utils-1.18.0/utils/ir-ctl/keymap.h 2019-10-30 07:06:18.250548011 +0100
  37. @@ -1,4 +1,8 @@
  38. /* SPDX-License-Identifier: GPL-2.0 */
  39. +
  40. +#include <argp.h>
  41. +#include <sys/types.h>
  42. +
  43. #ifndef __KEYMAP_H
  44. #define __KEYMAP_H
  45. diff -uNr v4l-utils-1.18.0.orig/utils/keytable/keymap.h v4l-utils-1.18.0/utils/keytable/keymap.h
  46. --- v4l-utils-1.18.0.orig/utils/keytable/keymap.h 2019-09-22 11:22:54.000000000 +0200
  47. +++ v4l-utils-1.18.0/utils/keytable/keymap.h 2019-10-30 07:06:56.218816126 +0100
  48. @@ -1,4 +1,8 @@
  49. /* SPDX-License-Identifier: GPL-2.0 */
  50. +
  51. +#include <argp.h>
  52. +#include <sys/types.h>
  53. +
  54. #ifndef __KEYMAP_H
  55. #define __KEYMAP_H
  56. --
  57. 2.20.1