diff options
author | Fabian Groffen <grobian@gentoo.org> | 2019-04-27 11:00:05 +0200 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2019-04-27 11:00:05 +0200 |
commit | 0a3db7b186f0785d29c2c72c5ad6dbb93381ac35 (patch) | |
tree | 51758c242339982382091c3b433c1d1a77b7a08d /main.h | |
parent | libq/atom: fix whitespace (diff) | |
download | portage-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>
Diffstat (limited to 'main.h')
-rw-r--r-- | main.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -19,6 +19,7 @@ #include <string.h> #include <errno.h> #include <stdint.h> +#include <limits.h> #include "i18n.h" #include "colors.h" |