summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2005-05-26 21:43:45 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2005-05-26 21:43:45 +0000
commit193d1d66d9820a31c790a07f6c65b36bad8acd1a (patch)
treec203d32b5708c8446bc1a4b31f1b47b5c79986b5 /net-misc/ntp/files
parentversion bump (diff)
downloadhistorical-193d1d66d9820a31c790a07f6c65b36bad8acd1a.tar.gz
historical-193d1d66d9820a31c790a07f6c65b36bad8acd1a.tar.bz2
historical-193d1d66d9820a31c790a07f6c65b36bad8acd1a.zip
Added patch to compile on Gentoo/FreeBSD. Closes bug #94038.
Package-Manager: portage-2.0.51.22-r1
Diffstat (limited to 'net-misc/ntp/files')
-rw-r--r--net-misc/ntp/files/4.2.0.20040617-freebsd.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/net-misc/ntp/files/4.2.0.20040617-freebsd.patch b/net-misc/ntp/files/4.2.0.20040617-freebsd.patch
new file mode 100644
index 000000000000..881faef63c53
--- /dev/null
+++ b/net-misc/ntp/files/4.2.0.20040617-freebsd.patch
@@ -0,0 +1,32 @@
+diff -ur ntp-stable-4.2.0a-20040617/ntpdc/ntpdc.c ntp-stable-4.2.0a-20040617-fbsd/ntpdc/ntpdc.c
+--- ntp-stable-4.2.0a-20040617/ntpdc/ntpdc.c 2004-05-25 13:02:25.000000000 +0200
++++ ntp-stable-4.2.0a-20040617-fbsd/ntpdc/ntpdc.c 2005-05-26 07:25:33.091870920 +0200
+@@ -449,7 +449,11 @@
+ hints.ai_flags = AI_NUMERICHOST;
+
+ a_info = getaddrinfo(hname, service, &hints, &ai);
+- if (a_info == EAI_NONAME || a_info == EAI_NODATA) {
++ if (a_info == EAI_NONAME
++#ifdef EAI_NODATA
++ || a_info == EAI_NODATA
++#endif
++ ) {
+ hints.ai_flags = AI_CANONNAME;
+ #ifdef AI_ADDRCONFIG
+ hints.ai_flags |= AI_ADDRCONFIG;
+diff -ur ntp-stable-4.2.0a-20040617/ntpq/ntpq.c ntp-stable-4.2.0a-20040617-fbsd/ntpq/ntpq.c
+--- ntp-stable-4.2.0a-20040617/ntpq/ntpq.c 2004-05-25 13:02:25.000000000 +0200
++++ ntp-stable-4.2.0a-20040617-fbsd/ntpq/ntpq.c 2005-05-26 07:26:33.276721432 +0200
+@@ -631,7 +631,11 @@
+ hints.ai_flags = AI_NUMERICHOST;
+
+ a_info = getaddrinfo(hname, service, &hints, &ai);
+- if (a_info == EAI_NONAME || a_info == EAI_NODATA) {
++ if (a_info == EAI_NONAME
++#ifdef EAI_NODATA
++ || a_info == EAI_NODATA
++#endif
++ ) {
+ hints.ai_flags = AI_CANONNAME;
+ #ifdef AI_ADDRCONFIG
+ hints.ai_flags |= AI_ADDRCONFIG;