summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/dns.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/libads/dns.c b/source3/libads/dns.c
index 7eeb915ecf..d2e263a9d1 100644
--- a/source3/libads/dns.c
+++ b/source3/libads/dns.c
@@ -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