From 3e3675ced526ff25267b318f293e66531382d257 Mon Sep 17 00:00:00 2001 From: Vipul Mehta Date: Mon, 31 May 2021 12:15:07 +0530 Subject: [PATCH] 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) --- src/include/win-mac.h | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.47.2