0003-Include-limits.h.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. From a4a3d9b012c12cd8aaa2526f0eacdcffcdd9f8f1 Mon Sep 17 00:00:00 2001
  2. From: Roberto Oliveira <robertoguimaraes8@gmail.com>
  3. Date: Tue, 16 May 2023 20:01:18 +0200
  4. Subject: [PATCH] Include limits.h
  5. vdr package uses some macros like HOST_NAME_MAX, NAME_MAX, which are defined
  6. in limits.h.
  7. Needs to be explicitly included on ppc64le and for all archs for debug build.
  8. Downloaded from
  9. https://git.alpinelinux.org/aports/tree/community/vdr/include-missing-limits.patch
  10. Initial commits:
  11. https://git.alpinelinux.org/aports/commit/?id=c9d8942ccf4825fd734b5f37157a49fc4f0b4339
  12. https://git.alpinelinux.org/aports/commit/?id=47965644c390b1be1117769b1e08b31858267e9a
  13. Upstream: https://www.linuxtv.org/pipermail/vdr/2023-May/029743.html
  14. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
  15. ---
  16. config.h | 1 +
  17. tools.c | 1 +
  18. 2 files changed, 2 insertions(+)
  19. diff --git a/config.h b/config.h
  20. index 72dd3d2a..b9ea769f 100644
  21. --- a/config.h
  22. +++ b/config.h
  23. @@ -19,6 +19,7 @@
  24. #include "i18n.h"
  25. #include "font.h"
  26. #include "tools.h"
  27. +#include <limits.h>
  28. // VDR's own version number:
  29. diff --git a/tools.c b/tools.c
  30. index 8b161eec..56a2e0dd 100644
  31. --- a/tools.c
  32. +++ b/tools.c
  33. @@ -27,6 +27,7 @@ extern "C" {
  34. #include <utime.h>
  35. #include "i18n.h"
  36. #include "thread.h"
  37. +#include <limits.h>
  38. int SysLogLevel = 3;
  39. --
  40. 2.39.2