gentoo-ebuilds/net-analyzer/arpwatch/files/0003-Drop-deprecated-resolver-option.patch
Holger Hoffstätte 2d726ec398
net-analyzer/arpwatch: add 3.8, misc. fixes
- 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>
2025-06-04 01:30:36 +01:00

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;