]> git.armaanb.net Git - opendoas.git/blobdiff - shadow.c
move HOST_NAME_MAX to the top and add it to shadow.c
[opendoas.git] / shadow.c
index 71c71c697dd644017a7d77bc8541f029c49038f2..64cc1f740d0172172072b3bf90b0befe7cdf12e0 100644 (file)
--- a/shadow.c
+++ b/shadow.c
 
 #include "openbsd.h"
 
+#ifndef HOST_NAME_MAX
+#define HOST_NAME_MAX _POSIX_HOST_NAME_MAX
+#endif
+
 void
 shadowauth(const char *myname, int persist)
 {