summaryrefslogtreecommitdiff
path: root/sys-apps/file/files/file-5.44-limits-solaris.patch
blob: 7a04535577b4fa659192c25e20751af180e57d50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 <grobian@gentoo.org>

--- a/src/softmagic.c
+++ b/src/softmagic.c
@@ -42,6 +42,7 @@
 #include <ctype.h>
 #include <stdlib.h>
 #include <time.h>
+#include <limits.h>
 #include "der.h"

 file_private int match(struct magic_set *, struct magic *, file_regex_t **,    size_t,