From b134e9024347cb8d8426730b7225ad1810c598b6 Mon Sep 17 00:00:00 2001 From: Cy Schubert Date: Sun, 25 Jan 2004 22:08:27 +0000 Subject: Change to src/include/netdb.h 1.31 caused a compile error. This commit fixes that error. Reported by: bento --- net/ntp-stable/files/patch-ntpdc::ntpdc.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 net/ntp-stable/files/patch-ntpdc::ntpdc.c (limited to 'net/ntp-stable/files/patch-ntpdc::ntpdc.c') diff --git a/net/ntp-stable/files/patch-ntpdc::ntpdc.c b/net/ntp-stable/files/patch-ntpdc::ntpdc.c new file mode 100644 index 000000000000..bb13b576a464 --- /dev/null +++ b/net/ntp-stable/files/patch-ntpdc::ntpdc.c @@ -0,0 +1,14 @@ +--- ntpdc/ntpdc.c.orig Sat Oct 11 00:52:22 2003 ++++ ntpdc/ntpdc.c Sun Jan 25 13:29:58 2004 +@@ -449,7 +449,11 @@ + hints.ai_flags = AI_NUMERICHOST; + + a_info = getaddrinfo(hname, service, &hints, &ai); ++#ifdef EAI_NODATA + if (a_info == EAI_NONAME || a_info == EAI_NODATA) { ++#else ++ if (a_info == EAI_NONAME) { ++#endif + hints.ai_flags = AI_CANONNAME; + #ifdef AI_ADDRCONFIG + hints.ai_flags |= AI_ADDRCONFIG; -- cgit v1.2.3