From: Vipul Mehta Date: Mon, 31 May 2021 06:45:07 +0000 (+0530) Subject: Add MAXHOSTNAME guard in Windows public header X-Git-Tag: krb5-1.20-beta1~86 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1194%2Fhead;p=thirdparty%2Fkrb5.git Add MAXHOSTNAME guard in Windows public header The ACE library defines a MAXHOSTNAMELEN macro, which conflicts if a source file includes headers from both libraries. ticket: 9010 (new) --- diff --git a/src/include/win-mac.h b/src/include/win-mac.h index dc0f2a1ae6..0fd3a29e5f 100644 --- a/src/include/win-mac.h +++ b/src/include/win-mac.h @@ -101,7 +101,10 @@ typedef _W64 int ssize_t; #endif #endif /* KRB5_SYSTYPES__ */ +#ifndef MAXHOSTNAMELEN #define MAXHOSTNAMELEN 512 +#endif + #ifndef MAXPATHLEN #define MAXPATHLEN 256 /* Also for Windows temp files */ #endif