$NetBSD$

--- sendmail/mci.c.orig	2020-05-19 21:54:33.000000000 +0200
+++ sendmail/mci.c	2021-03-18 10:51:32.980216478 +0100
@@ -19,8 +19,9 @@
 # include <arpa/inet.h>
 #endif
 
 #include <dirent.h>
+#include <limits.h>
 #if STARTTLS
 # include <tls.h>
 #endif
 
@@ -787,9 +788,13 @@
 	MCI *mci;
 {
 	int save_errno = errno;
 	int retVal = EX_OK;
+#if defined(PATH_MAX)
+	char fname[PATH_MAX];
+#else
 	char fname[MAXPATHLEN];
+#endif
 
 	if (HostStatDir == NULL || mci->mci_host == NULL)
 		return EX_OK;
 
