summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc/cdargs/files/cdargs-2.1-musl.patch')
-rw-r--r--app-misc/cdargs/files/cdargs-2.1-musl.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/app-misc/cdargs/files/cdargs-2.1-musl.patch b/app-misc/cdargs/files/cdargs-2.1-musl.patch
new file mode 100644
index 000000000000..81130482a500
--- /dev/null
+++ b/app-misc/cdargs/files/cdargs-2.1-musl.patch
@@ -0,0 +1,17 @@
+In Musl path max is in limits.h and not automatically pulled in
+
+Pascal Jäger <pascal.jaeger@leimstift.de> (2023-10-14)
+
+Bug: https://bugs.gentoo.org/713962
+upstream PR: https://github.com/cbxbiker61/cdargs/pull/8
+
+--- a/src/cdargs.cc
++++ b/src/cdargs.cc
+@@ -56,6 +56,7 @@ using namespace std;
+ # include <unistd.h>
+ # include <signal.h>
+ # include <string.h>
++# include <limits.h>
+
+ //# if defined(USE_NCURSES) && !defined(RENAMED_NCURSES)
+ # if defined(HAVE_NCURSES_H)