diff --git a/sys-apps/file/file-5.44.ebuild b/sys-apps/file/file-5.44.ebuild index 41f62b904bd3f..e300174f860d3 100644 --- a/sys-apps/file/file-5.44.ebuild +++ b/sys-apps/file/file-5.44.ebuild @@ -54,6 +54,7 @@ BDEPEND+=" PATCHES=( "${FILESDIR}/file-5.39-portage-sandbox.patch" #713710 #728978 "${FILESDIR}/file-5.40-seccomp-fstatat64-musl.patch" #789336, not upstream yet + "${FILESDIR}/file-5.44-limits-solaris.patch" # not upstream yet ) src_prepare() { diff --git a/sys-apps/file/files/file-5.44-limits-solaris.patch b/sys-apps/file/files/file-5.44-limits-solaris.patch new file mode 100644 index 0000000000000..7a04535577b4f --- /dev/null +++ b/sys-apps/file/files/file-5.44-limits-solaris.patch @@ -0,0 +1,19 @@ +softmagic: include limits.h for UINT_MAX usage + +Platforms like Solaris need this to compile. + +Bug: https://bugs.astron.com/view.php?id=413 +Signed-off-by: Fabian Groffen + +--- a/src/softmagic.c ++++ b/src/softmagic.c +@@ -42,6 +42,7 @@ + #include + #include + #include ++#include + #include "der.h" + + file_private int match(struct magic_set *, struct magic *, file_regex_t **, size_t, + +