From: Antonio Quartulli Date: Thu, 21 Apr 2022 13:19:09 +0000 (+0200) Subject: auth-pam.c: add missing include limits.h X-Git-Tag: v2.5.7~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70b6c69c8255ebd6e789e59b0fe8e106a35e9ad8;p=thirdparty%2Fopenvpn.git auth-pam.c: add missing include limits.h On most systems limits.h is pulled in by some other header and thus no error is ever triggered, but it's possible to find the right environment which lackis this and prevents compiling auth-pam.c (possibly when using LibreSSL). Include the header explicitly as it includes the definition of PATH_MAX. (note that this bug is fixed in Gentoo since 2020 by including a custom patch, but apparently the issue was never reported upstream) Reported-by: Michelangelo Scopelliti Signed-off-by: Antonio Quartulli Acked-by: Gert Doering Message-Id: <20220421131909.32053-1-a@unstable.cc> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg24136.html Signed-off-by: Gert Doering (cherry picked from commit 0fed64a91d894b46105bf7e8b16edea4d90ab70c) --- diff --git a/src/plugins/auth-pam/auth-pam.c b/src/plugins/auth-pam/auth-pam.c index 3a3a24096..c5e55d8ac 100644 --- a/src/plugins/auth-pam/auth-pam.c +++ b/src/plugins/auth-pam/auth-pam.c @@ -47,6 +47,7 @@ #include #include #include +#include #include "utils.h" #include