r15544: make sure to define NS_PACKETSZ for Bind 4 interfaces (fix build on us4)
authorGerald Carter <jerry@samba.org>
Fri, 12 May 2006 16:38:51 +0000 (16:38 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:16:57 +0000 (11:16 -0500)
(This used to be commit 18f2e1a4e19a83afec6573a020f3a913f07d19dc)

source3/libads/dns.c

index 7eeb915ecfd4a66a52d968858f182be6a10f3e65..d2e263a9d1bd06c6469f6a4c07fd2319e0b23494 100644 (file)
 #    define NS_HFIXEDSZ HFIXEDSZ
 #  else
 #    define NS_HFIXEDSZ sizeof(HEADER)
 #    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
 
 #  define T_SRV        33
 #endif