summaryrefslogtreecommitdiff
path: root/net/ntp/files/patch-ntpdc::ntpdc.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ntp/files/patch-ntpdc::ntpdc.c')
-rw-r--r--net/ntp/files/patch-ntpdc::ntpdc.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/net/ntp/files/patch-ntpdc::ntpdc.c b/net/ntp/files/patch-ntpdc::ntpdc.c
new file mode 100644
index 000000000000..bb13b576a464
--- /dev/null
+++ b/net/ntp/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;