From: Darren Tucker Date: Thu, 27 May 2021 11:14:15 +0000 (+1000) Subject: Include login_cap.h for login_getpwclass override. X-Git-Tag: V_8_7_P1~189 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb68e669bc8ab968d4cca5bf1357baca7136a826;p=thirdparty%2Fopenssh-portable.git Include login_cap.h for login_getpwclass override. On minix3, login_getpwclass is __RENAME'ed to __login_getpwclass50 so without this the include overriding login_getpwclass causes a compile error. --- diff --git a/openbsd-compat/openbsd-compat.h b/openbsd-compat/openbsd-compat.h index 542ae58dd..64c7cdf1c 100644 --- a/openbsd-compat/openbsd-compat.h +++ b/openbsd-compat/openbsd-compat.h @@ -49,6 +49,7 @@ #include "fnmatch.h" #if defined(HAVE_LOGIN_CAP) && !defined(HAVE_LOGIN_GETPWCLASS) +# include # define login_getpwclass(pw) login_getclass(pw->pw_class) #endif