]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Define INT_MAX via `#include <limits.h>` (#2170)
authorTim Kientzle <kientzle@acm.org>
Tue, 7 May 2024 03:46:26 +0000 (20:46 -0700)
committerGitHub <noreply@github.com>
Tue, 7 May 2024 03:46:26 +0000 (20:46 -0700)
#2110 added usages of INT_MAX here without adding the necessary header.

Resolves #2162

tar/bsdtar.c

index 42baab2861bd8d3247b32dc99103fb772aab19e3..f0e71afd1ca7d81b9e4baa8fa8940784d02eeef9 100644 (file)
@@ -43,6 +43,9 @@
 #ifdef HAVE_LANGINFO_H
 #include <langinfo.h>
 #endif
+#ifdef HAVE_LIMITS_H
+#include <limits.h>
+#endif
 #ifdef HAVE_LOCALE_H
 #include <locale.h>
 #endif