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.
This commit is contained in:
Darren Tucker 2021-05-27 21:14:15 +10:00
parent 2063af7142
commit eb68e669bc

View 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