]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Include login_cap.h for login_getpwclass override.
authorDarren Tucker <dtucker@dtucker.net>
Thu, 27 May 2021 11:14:15 +0000 (21:14 +1000)
committerDarren Tucker <dtucker@dtucker.net>
Thu, 27 May 2021 11:14:15 +0000 (21:14 +1000)
On minix3, login_getpwclass is __RENAME'ed to __login_getpwclass50 so
without this the include overriding login_getpwclass causes a compile
error.

openbsd-compat/openbsd-compat.h

index 542ae58ddc8a4f5ab57e1c20fc6fb10c2e29e5cf..64c7cdf1cd01995f9bc6fb221cb9c865217c56dd 100644 (file)
@@ -49,6 +49,7 @@
 #include "fnmatch.h"
 
 #if defined(HAVE_LOGIN_CAP) && !defined(HAVE_LOGIN_GETPWCLASS)
+# include <login_cap.h>
 # define login_getpwclass(pw) login_getclass(pw->pw_class)
 #endif