$NetBSD: patch-ab,v 1.1.1.1 2009/12/11 19:48:12 agc Exp $ --- pam_user_authorized_keys.c 2009/12/11 15:54:07 1.1 +++ pam_user_authorized_keys.c 2009/12/11 15:55:45 @@ -81,6 +81,10 @@ extern uint8_t allow_user_owned_authorized_keys_file; uid_t authorized_keys_file_allowed_owner_uid; +#ifndef HOST_NAME_MAX +#define HOST_NAME_MAX MAXHOSTNAMELEN +#endif + void parse_authorized_key_file(const char *user, const char *authorized_keys_file_input) {