From 2bd37be8b04977f8fc9bbdefffc1f2ebe89db1f7 Mon Sep 17 00:00:00 2001 From: Miro Jurisic Date: Mon, 22 Nov 1999 22:58:02 +0000 Subject: [PATCH] MacOS: only #define MAXHOSTNAMELEN when not already defined git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11908 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/krb5/ChangeLog | 5 +++++ src/include/krb5/macsock.h | 2 ++ 2 files changed, 7 insertions(+) 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 */ -- 2.26.2