aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2019-04-27 11:00:05 +0200
committerFabian Groffen <grobian@gentoo.org>2019-04-27 11:00:05 +0200
commit0a3db7b186f0785d29c2c72c5ad6dbb93381ac35 (patch)
tree51758c242339982382091c3b433c1d1a77b7a08d
parentlibq/atom: fix whitespace (diff)
downloadportage-utils-0a3db7b186f0785d29c2c72c5ad6dbb93381ac35.tar.gz
portage-utils-0a3db7b186f0785d29c2c72c5ad6dbb93381ac35.tar.bz2
portage-utils-0a3db7b186f0785d29c2c72c5ad6dbb93381ac35.zip
main.h: include limits.h for Linux PATH_MAX
make PATH_MAX available, such that the logic can properly use it (again) This issue showed itself as a fortification error on Linux, because _Q_PATH_MAX was defined as less than PATH_MAX making realpath_chk fail. Bug: https://bugs.gentoo.org/684468 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
-rw-r--r--main.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.h b/main.h
index 32c995f8..88412a8d 100644
--- a/main.h
+++ b/main.h
@@ -19,6 +19,7 @@
#include <string.h>
#include <errno.h>
#include <stdint.h>
+#include <limits.h>
#include "i18n.h"
#include "colors.h"