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