From: Howard Chu Date: Sat, 17 Jan 2004 01:54:14 +0000 (+0000) Subject: define HFIXEDSZ if it's missing. Not all platforms have it. X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~20 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=54f38330ef8c996a949551ff4a67da054ad92481;p=openldap define HFIXEDSZ if it's missing. Not all platforms have it. --- diff --git a/libraries/libldap/dnssrv.c b/libraries/libldap/dnssrv.c index 0baaf875ad..b9279a1d82 100644 --- a/libraries/libldap/dnssrv.c +++ b/libraries/libldap/dnssrv.c @@ -230,6 +230,9 @@ int ldap_domain2hostlist( /* Bind 8/9 interface */ p += NS_HFIXEDSZ; #else +#ifndef HFIXEDSZ +#define HFIXEDSZ sizeof(HEADER) +#endif /* Bind 4 interface */ p += HFIXEDSZ; #endif