1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00

Fix build on -current due to removal of EAI_NODATA

This commit is contained in:
Edwin Groothuis 2004-01-25 00:24:33 +00:00
parent b93926d6a6
commit 1e2ca4a777
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=98989

View File

@ -0,0 +1,11 @@
--- dnstracer.c.orig Sun Jan 25 11:23:52 2004
+++ dnstracer.c Sun Jan 25 11:24:01 2004
@@ -729,7 +729,7 @@
hints.ai_family = PF_INET;
hints.ai_socktype = SOCK_DGRAM;
error = getaddrinfo(global_source_address, 0, &hints, &src_res);
- if (error == EAI_NODATA) {
+ if (error == EAI_NONAME) {
hints.ai_flags = 0;
error = getaddrinfo(global_source_address, 0, &hints, &src_res);
}