$NetBSD: patch-ai,v 1.9 2014/06/15 20:48:50 jnemeth Exp $ --- sendmail/mci.c.orig 2014-03-06 17:31:31.000000000 +0000 +++ sendmail/mci.c @@ -20,6 +20,7 @@ SM_RCSID("@(#)$Id: mci.c,v 8.225 2013-11 #endif /* NETINET || NETINET6 */ #include +#include static int mci_generate_persistent_path __P((const char *, char *, int, bool)); @@ -744,7 +745,11 @@ mci_lock_host_statfile(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;