[31003] in CVS-changelog-for-Kerberos-V5

home help back first fref pref prev next nref lref last post

krb5 commit: Add MAXHOSTNAME guard in Windows public header

daemon@ATHENA.MIT.EDU (Greg Hudson)
Thu Jun 3 13:43:41 2021

Date: Thu, 3 Jun 2021 13:43:19 -0400
From: Greg Hudson <ghudson@mit.edu>
Message-ID: <202106031743.153HhJtS027100@drugstore.mit.edu>
To: <cvs-krb5@mit.edu>
MIME-Version: 1.0
Reply-To: krbdev@mit.edu
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cvs-krb5-bounces@mit.edu

https://github.com/krb5/krb5/commit/3e3675ced526ff25267b318f293e66531382d257
commit 3e3675ced526ff25267b318f293e66531382d257
Author: Vipul Mehta <vipulmehta.1989@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
_______________________________________________
cvs-krb5 mailing list
cvs-krb5@mit.edu
https://mailman.mit.edu/mailman/listinfo/cvs-krb5

home help back first fref pref prev next nref lref last post