From: Miro Jurisic Date: Mon, 22 Nov 1999 22:58:02 +0000 (+0000) Subject: MacOS: only #define MAXHOSTNAMELEN when not already defined X-Git-Tag: krb5-1.2-beta1~181 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2bd37be8b04977f8fc9bbdefffc1f2ebe89db1f7;p=krb5.git MacOS: only #define MAXHOSTNAMELEN when not already defined git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11908 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/include/krb5/ChangeLog b/src/include/krb5/ChangeLog index 51b4ccbcc..6fc5cc384 100644 --- a/src/include/krb5/ChangeLog +++ b/src/include/krb5/ChangeLog @@ -1,3 +1,8 @@ +1998-11-22 Miro Jurisic + + * macsock.h: MacOS: only #define MACHOSTNAMELEN when not + already defined + Wed May 19 11:35:18 1999 Danilo Almeida * Makefile.in: Create build rules for windows instead of blindly diff --git a/src/include/krb5/macsock.h b/src/include/krb5/macsock.h index c34f54b6b..06b103af3 100644 --- a/src/include/krb5/macsock.h +++ b/src/include/krb5/macsock.h @@ -82,7 +82,9 @@ typedef int SOCKET; #define SOCKET_EINTR EINTR #define WSAECONNABORTED kECONNABORTEDErr +#ifndef MAXHOSTNAMELEN #define MAXHOSTNAMELEN MAXHOSTNAMESIZE +#endif #define SOCKET_NFDS(f) (FD_SETSIZE) /* select()'s first arg is maxed out */