mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-20 00:48:23 +00:00
- do not use a long deprecated resolver option - fix Makefile to use correct path for reading ethercodes.dat - fix hardcoded paths in update-ethercodes.sh so that it actually works - remind users to update their ethercodes.dat Thanks to Vladislav Mikhailikov <vmikhailikov@gmail.com> for initial work and inspiration. Closes: https://bugs.gentoo.org/783195 Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com> Part-of: https://github.com/gentoo/gentoo/pull/42386 Closes: https://github.com/gentoo/gentoo/pull/42386 Signed-off-by: Sam James <sam@gentoo.org>
17 lines
478 B
Diff
17 lines
478 B
Diff
This enumeration value is deprecated in /usr/include/resolv.h:
|
|
|
|
#define RES_AAONLY \
|
|
__glibc_macro_warning ("RES_AAONLY is deprecated") 0x00000004
|
|
|
|
Since Gentoo is not using outdated glibc version it is safe to disable it.
|
|
|
|
--- a/dns.c
|
|
+++ b/dns.c
|
|
@@ -150,7 +150,6 @@
|
|
struct hostent *hp;
|
|
|
|
options = _res.options;
|
|
- _res.options |= RES_AAONLY;
|
|
_res.options &= ~(RES_DEFNAMES | RES_DNSRCH);
|
|
hp = gethostbyaddr((char *)&a, sizeof(a), AF_INET);
|
|
_res.options = options;
|