summaryrefslogtreecommitdiff
path: root/net/ntp-stable/files/patch-ntpq::ntpq.c
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2004-01-25 22:08:27 +0000
committerCy Schubert <cy@FreeBSD.org>2004-01-25 22:08:27 +0000
commitb134e9024347cb8d8426730b7225ad1810c598b6 (patch)
tree46626659b9bf73a1f996d4da38ec7185e1b8e823 /net/ntp-stable/files/patch-ntpq::ntpq.c
parentRemove a COMMENT assignment that was left over from when we had pkg-comment (diff)
Change to src/include/netdb.h 1.31 caused a compile error. This
commit fixes that error. Reported by: bento
Notes
Notes: svn path=/head/; revision=99136
Diffstat (limited to 'net/ntp-stable/files/patch-ntpq::ntpq.c')
-rw-r--r--net/ntp-stable/files/patch-ntpq::ntpq.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/net/ntp-stable/files/patch-ntpq::ntpq.c b/net/ntp-stable/files/patch-ntpq::ntpq.c
new file mode 100644
index 000000000000..0a221dd0742b
--- /dev/null
+++ b/net/ntp-stable/files/patch-ntpq::ntpq.c
@@ -0,0 +1,14 @@
+--- ntpq/ntpq.c.orig Thu Oct 9 02:27:05 2003
++++ ntpq/ntpq.c Sun Jan 25 13:49:33 2004
+@@ -630,7 +630,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;