summaryrefslogtreecommitdiff
path: root/user/astyle/limits.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/astyle/limits.patch')
-rw-r--r--user/astyle/limits.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/user/astyle/limits.patch b/user/astyle/limits.patch
new file mode 100644
index 000000000..9853819f4
--- /dev/null
+++ b/user/astyle/limits.patch
@@ -0,0 +1,12 @@
+PATH_MAX is not defined unless we pull in <limits.h> on musl.
+
+--- astyle/src/astyle_main.cpp.old 2018-01-11 17:18:19.000000000 +0000
++++ astyle/src/astyle_main.cpp 2020-07-19 20:23:56.774222078 +0000
+@@ -37,6 +37,7 @@
+
+ #include <algorithm>
+ #include <cerrno>
++#include <climits>
+ #include <clocale> // needed by some compilers
+ #include <cstdlib>
+ #include <fstream>