--- a/src/saslplugin/plugin_common.c	2021-11-30 19:15:02.000000000 +0100
+++ -	2021-12-12 10:56:46.948934294 +0100
@@ -73,6 +73,10 @@
 
 #include "plugin_common.h"
 
+#ifndef NI_MAXHOST
+#define NI_MAXHOST 1025
+#endif
+
 /* translate IPv4 mapped IPv6 address to IPv4 address */
 static void sockaddr_unmapped(
 #ifdef IN6_IS_ADDR_V4MAPPED
