#include "includes.h"
+#ifndef HOST_NAME_MAX
+#define HOST_NAME_MAX _POSIX_HOST_NAME_MAX
+#endif
+
#define PAM_SERVICE_NAME "doas"
static pam_handle_t *pamh = NULL;
if (!interactive)
errx(1, "Authorization required");
-#ifndef HOST_NAME_MAX
-#define HOST_NAME_MAX _POSIX_HOST_NAME_MAX
-#endif
/* doas style prompt for pam */
char host[HOST_NAME_MAX + 1];
if (gethostname(host, sizeof(host)))