Author: jerry Date: 2006-05-12 16:38:51 +0000 (Fri, 12 May 2006) New Revision: 15544
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=15544 Log: make sure to define NS_PACKETSZ for Bind 4 interfaces (fix build on us4) Modified: branches/SAMBA_3_0/source/libads/dns.c trunk/source/libads/dns.c Changeset: Modified: branches/SAMBA_3_0/source/libads/dns.c =================================================================== --- branches/SAMBA_3_0/source/libads/dns.c 2006-05-12 15:17:35 UTC (rev 15543) +++ branches/SAMBA_3_0/source/libads/dns.c 2006-05-12 16:38:51 UTC (rev 15544) @@ -47,7 +47,12 @@ # define NS_HFIXEDSZ HFIXEDSZ # else # define NS_HFIXEDSZ sizeof(HEADER) -# endif +# endif /* HFIXEDSZ */ +# ifdef PACKETSZ +# define NS_PACKETSZ PACKETSZ +# else /* 512 is usually the default */ +# define NS_PACKETSZ 512 +# endif /* PACKETSZ */ # define T_SRV 33 #endif Modified: trunk/source/libads/dns.c =================================================================== --- trunk/source/libads/dns.c 2006-05-12 15:17:35 UTC (rev 15543) +++ trunk/source/libads/dns.c 2006-05-12 16:38:51 UTC (rev 15544) @@ -47,7 +47,12 @@ # define NS_HFIXEDSZ HFIXEDSZ # else # define NS_HFIXEDSZ sizeof(HEADER) -# endif +# endif /* HFIXEDSZ */ +# ifdef PACKETSZ +# define NS_PACKETSZ PACKETSZ +# else /* 512 is usually the default */ +# define NS_PACKETSZ 512 +# endif /* PACKETSZ */ # define T_SRV 33 #endif
