summaryrefslogtreecommitdiff
path: root/lib/addns
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2018-01-03 16:25:41 +0100
committerJeremy Allison <jra@samba.org>2019-02-27 01:35:18 +0100
commite3902283f226002add45bc3ad7033ccb46ee75ce (patch)
treeb31c140398052c36f652b1e6ed8b2e819d0aa29a /lib/addns
parent09d281d69b668a71e4457889bb5e949414a664fb (diff)
downloadsamba-e3902283f226002add45bc3ad7033ccb46ee75ce.tar.gz
addns: Remove some unused defines
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'lib/addns')
-rw-r--r--lib/addns/dnsquery.c50
1 files changed, 0 insertions, 50 deletions
diff --git a/lib/addns/dnsquery.c b/lib/addns/dnsquery.c
index e5600367c4b..87ae97e3d0b 100644
--- a/lib/addns/dnsquery.c
+++ b/lib/addns/dnsquery.c
@@ -26,56 +26,6 @@
#include "lib/util/tevent_ntstatus.h"
#include "dnsquery.h"
-/* AIX resolv.h uses 'class' in struct ns_rr */
-
-#if defined(AIX)
-# if defined(class)
-# undef class
-# endif
-#endif /* AIX */
-
-/* resolver headers */
-
-#include <sys/types.h>
-#include <netinet/in.h>
-#include <arpa/nameser.h>
-#include <resolv.h>
-#include <netdb.h>
-
-#define MAX_DNS_PACKET_SIZE 0xffff
-
-#ifdef NS_HFIXEDSZ /* Bind 8/9 interface */
-#if !defined(C_IN) /* AIX 5.3 already defines C_IN */
-# define C_IN ns_c_in
-#endif
-#if !defined(T_A) /* AIX 5.3 already defines T_A */
-# define T_A ns_t_a
-#endif
-
-#if defined(HAVE_IPV6)
-#if !defined(T_AAAA)
-# define T_AAAA ns_t_aaaa
-#endif
-#endif
-
-# define T_SRV ns_t_srv
-#if !defined(T_NS) /* AIX 5.3 already defines T_NS */
-# define T_NS ns_t_ns
-#endif
-#else
-# ifdef HFIXEDSZ
-# define NS_HFIXEDSZ HFIXEDSZ
-# else
-# define NS_HFIXEDSZ sizeof(HEADER)
-# 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
-
/*********************************************************************
Sort SRV record list based on weight and priority. See RFC 2782.
*********************************************************************/