From: Tom Yu Date: Wed, 19 Jul 1995 21:46:46 +0000 (+0000) Subject: * localaddr.c: also add definition of max if it's not there X-Git-Tag: krb5-1.0-beta6~1503 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b96152751755ce1bbce5f4e2ae7af0576442e5d4;p=krb5.git * localaddr.c: also add definition of max if it's not there git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6316 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/crypto/os/ChangeLog b/src/lib/crypto/os/ChangeLog index c155a075a..73381f574 100644 --- a/src/lib/crypto/os/ChangeLog +++ b/src/lib/crypto/os/ChangeLog @@ -1,5 +1,7 @@ Wed Jul 19 17:17:54 1995 Tom Yu + * localaddr.c: also add definition of max if it's not there. + * localaddr.c: fix definition of ifreq_size so it actually works Mon Jul 17 16:04:00 1995 Sam Hartman diff --git a/src/lib/crypto/os/localaddr.c b/src/lib/crypto/os/localaddr.c index 842bf9a83..2fcb96412 100644 --- a/src/lib/crypto/os/localaddr.c +++ b/src/lib/crypto/os/localaddr.c @@ -80,6 +80,9 @@ * just sizeof(struct ifreq) */ #ifdef HAVE_SA_LEN +#ifndef max +#define max(a,b) ((a) > (b) ? (a) : (b)) +#endif #define ifreq_size(i) max(sizeof(struct ifreq),\ sizeof((i).ifr_name)+(i).ifr_addr.sa_len) #else