krb5 commit: Add MAXHOSTNAME guard in Windows public header
Greg Hudson
ghudson at mit.edu
Thu Jun 3 13:43:19 EDT 2021
https://github.com/krb5/krb5/commit/3e3675ced526ff25267b318f293e66531382d257
commit 3e3675ced526ff25267b318f293e66531382d257
Author: Vipul Mehta <vipulmehta.1989 at gmail.com>
Date: Mon May 31 12:15:07 2021 +0530
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 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/include/win-mac.h b/src/include/win-mac.h
index dc0f2a1..0fd3a29 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
More information about the cvs-krb5
mailing list