summaryrefslogtreecommitdiffstats
path: root/net/ntp
diff options
context:
space:
mode:
authorcy <cy@FreeBSD.org>2004-01-25 22:08:27 +0000
committercy <cy@FreeBSD.org>2004-01-25 22:08:27 +0000
commitb3648e9e8bff8bb8c52c9d9c8c397eb531b6e22a (patch)
tree48165d8dbb4f562b68f2ce3f2fc91154fe9792e0 /net/ntp
parent4e93ca2298d6e9a3c1457c87aec1c9d3126cd948 (diff)
downloadFreeBSD-ports-b3648e9e8bff8bb8c52c9d9c8c397eb531b6e22a.zip
FreeBSD-ports-b3648e9e8bff8bb8c52c9d9c8c397eb531b6e22a.tar.gz
Change to src/include/netdb.h 1.31 caused a compile error. This
commit fixes that error. Reported by: bento
Diffstat (limited to 'net/ntp')
-rw-r--r--net/ntp/Makefile1
-rw-r--r--net/ntp/files/patch-ntpdc::ntpdc.c14
-rw-r--r--net/ntp/files/patch-ntpq::ntpq.c14
3 files changed, 29 insertions, 0 deletions
diff --git a/net/ntp/Makefile b/net/ntp/Makefile
index 907514e..37b19fe 100644
--- a/net/ntp/Makefile
+++ b/net/ntp/Makefile
@@ -7,6 +7,7 @@
PORTNAME= ntp
PORTVERSION= 4.2.0
+PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= ftp://ftp.udel.edu/pub/ntp/ntp4/ \
http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ \
diff --git a/net/ntp/files/patch-ntpdc::ntpdc.c b/net/ntp/files/patch-ntpdc::ntpdc.c
new file mode 100644
index 0000000..bb13b57
--- /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;
diff --git a/net/ntp/files/patch-ntpq::ntpq.c b/net/ntp/files/patch-ntpq::ntpq.c
new file mode 100644
index 0000000..0a221dd
--- /dev/null
+++ b/net/ntp/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;
OpenPOWER on IntegriCloud