]> sourceware.org Git - glibc.git/commitdiff
resolv: Remove the BIND_4_COMPAT macro
authorFlorian Weimer <fweimer@redhat.com>
Wed, 21 Sep 2016 14:09:03 +0000 (16:09 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 21 Sep 2016 14:09:03 +0000 (16:09 +0200)
ChangeLog
resolv/arpa/nameser.h
resolv/res_comp.c

index efa0af514e51351cfc5eeb8425c13ea0e5128893..5da8103b54de7701a988738eee1bd0f2846c75cc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2016-09-21  Florian Weimer  <fweimer@redhat.com>
+
+       Remove the always-defined BIND_4_COMPAT macro.
+       * resolv/arpa/nameser.h: Unconditionally include
+       <arpa/nameser_compat.h>.
+       (BIND_4_COMPAT): Remove.
+       * resolv/res_comp.c: Do not check BIND_4_COMPAT.
+
 2016-09-21  Florian Weimer  <fweimer@redhat.com>
 
        [BZ #20591]
index cdbec23ce3b4a855633b62aece3a6b7fef957c5e..884affae2fc3708e78fd13caa43021643b945a86 100644 (file)
 #ifndef _ARPA_NAMESER_H_
 #define _ARPA_NAMESER_H_
 
-/*! \file */
-
-#define BIND_4_COMPAT
-
 #include <sys/param.h>
 #include <sys/types.h>
 #include <sys/cdefs.h>
@@ -420,9 +416,7 @@ int         ns_makecanon (const char *, char *, size_t) __THROW;
 int            ns_samename (const char *, const char *) __THROW;
 __END_DECLS
 
-#ifdef BIND_4_COMPAT
 #include <arpa/nameser_compat.h>
-#endif
 
 #endif /* !_ARPA_NAMESER_H_ */
 /*! \file */
index d2be5e4560a0396ff4c7a3afebe0e29b9c6c63d8..ffb2ed59147d36801eedbc20e9d254f62d240824 100644 (file)
@@ -228,7 +228,6 @@ res_dnok(const char *dn) {
 }
 libresolv_hidden_def (res_dnok)
 
-#ifdef BIND_4_COMPAT
 /*
  * This module must export the following externally-visible symbols:
  *     ___putlong
@@ -243,7 +242,6 @@ void __putshort(u_int16_t src, u_char *dst) { ns_put16(src, dst); }
 libresolv_hidden_def (__putshort)
 u_int32_t _getlong(const u_char *src) { return (ns_get32(src)); }
 u_int16_t _getshort(const u_char *src) { return (ns_get16(src)); }
-#endif /*BIND_4_COMPAT*/
 \f
 
 #include <shlib-compat.h>
This page took 0.174251 seconds and 5 git commands to generate.