From b96152751755ce1bbce5f4e2ae7af0576442e5d4 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Wed, 19 Jul 1995 21:46:46 +0000 Subject: [PATCH] * 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 --- src/lib/crypto/os/ChangeLog | 2 ++ src/lib/crypto/os/localaddr.c | 3 +++ 2 files changed, 5 insertions(+) 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 -- 2.26.2