$NetBSD$

--- 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)
 {
