aboutsummaryrefslogtreecommitdiffstats
path: root/testing/vdr/include-missing-limits-ppc64le.patch
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-07-25 20:31:59 +0000
committerJakub Jirutka <jakub@jirutka.cz>2017-07-25 22:41:24 +0200
commitc9d8942ccf4825fd734b5f37157a49fc4f0b4339 (patch)
tree349cb61811a48c35db33cd6ab746a2fa438c60c6 /testing/vdr/include-missing-limits-ppc64le.patch
parent88e0a85bf7c1ad471caaf6347497aebaff7b1cf2 (diff)
downloadaports-c9d8942ccf4825fd734b5f37157a49fc4f0b4339.tar.bz2
aports-c9d8942ccf4825fd734b5f37157a49fc4f0b4339.tar.xz
testing/vdr: fix build on ppc64le
vdr package uses some macros like HOST_NAME_MAX, NAME_MAX, which are defined in limits.h and needs to be explicitly included on ppc64le.
Diffstat (limited to 'testing/vdr/include-missing-limits-ppc64le.patch')
-rw-r--r--testing/vdr/include-missing-limits-ppc64le.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/testing/vdr/include-missing-limits-ppc64le.patch b/testing/vdr/include-missing-limits-ppc64le.patch
new file mode 100644
index 0000000000..c3df836452
--- /dev/null
+++ b/testing/vdr/include-missing-limits-ppc64le.patch
@@ -0,0 +1,28 @@
+vdr package uses some macros like HOST_NAME_MAX, NAME_MAX, which are defined
+in limits.h and needs to be explicitly included on ppc64le.
+----
+
+--- vdr-2.3.8/config.h
++++ vdr-2.3.8/config.h
+@@ -19,6 +19,9 @@
+ #include "i18n.h"
+ #include "font.h"
+ #include "tools.h"
++#ifdef __powerpc64__
++#include <limits.h>
++#endif
+
+ // VDR's own version number:
+
+--- vdr-2.3.8/tools.c
++++ vdr-2.3.8/tools.c
+@@ -27,6 +27,9 @@
+ #include <utime.h>
+ #include "i18n.h"
+ #include "thread.h"
++#ifdef __powerpc64__
++#include <limits.h>
++#endif
+
+ int SysLogLevel = 3;
+