aboutsummaryrefslogtreecommitdiffstats
path: root/testing/timew/musl_limits.patch
diff options
context:
space:
mode:
authorBreno Leitao <breno.leitao@gmail.com>2017-04-04 18:42:28 +0000
committerBreno Leitao <breno.leitao@gmail.com>2017-04-04 18:42:28 +0000
commit1b40c9d35c549fd77a85942e44e2cbbbc0d599f5 (patch)
treec12096eae4145c7e2207646135875b3f8750b4e0 /testing/timew/musl_limits.patch
parentfa0a5dbf864038261be4c415e5a9d8881945e4e2 (diff)
downloadaports-1b40c9d35c549fd77a85942e44e2cbbbc0d599f5.tar.bz2
aports-1b40c9d35c549fd77a85942e44e2cbbbc0d599f5.tar.xz
testing/timew: fix FTBFS on ppc64le
Currently timew FTBFS on ppc64le because there is no PATH_MAX defined implicitly. If your code needs to use PATH_MAX, it needs to include limits.h.
Diffstat (limited to 'testing/timew/musl_limits.patch')
-rw-r--r--testing/timew/musl_limits.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/testing/timew/musl_limits.patch b/testing/timew/musl_limits.patch
new file mode 100644
index 0000000000..31ec977ee4
--- /dev/null
+++ b/testing/timew/musl_limits.patch
@@ -0,0 +1,25 @@
+commit e8ae212aca78e332a03e79a4dacc75cfffa43011
+Author: Breno Leitao <breno.leitao@gmail.com>
+Date: Tue April 04 14:12:11 2017 -0300
+
+ Include limits.h if you want to use PATH_MAX
+
+ timew FTBFS on ppc64le due to lack of PATH_MAX being implicitly defined.
+ On ppc64le, if you wish to have access to this macro, you must have
+ limits.h included explicitly.
+
+ Signed-off-by: Breno Leitao <breno.leitao@gmail.com>
+
+Index: timew/src/timew-1.0.0/src/libshared/src/FS.cpp
+===================================================================
+--- timew.orig/src/timew-1.0.0/src/libshared/src/FS.cpp
++++ timew/src/timew-1.0.0/src/libshared/src/FS.cpp
+@@ -41,7 +41,7 @@
+ #include <shared.h>
+ #include <format.h>
+
+-#if defined SOLARIS || defined NETBSD || defined FREEBSD
++#if defined SOLARIS || defined NETBSD || defined FREEBSD || !defined(PATH_MAX)
+ #include <limits.h>
+ #endif
+