diff options
author | Cy Schubert <cy@FreeBSD.org> | 2004-01-25 22:08:27 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2004-01-25 22:08:27 +0000 |
commit | b134e9024347cb8d8426730b7225ad1810c598b6 (patch) | |
tree | 46626659b9bf73a1f996d4da38ec7185e1b8e823 /net/ntp | |
parent | Remove 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')
-rw-r--r-- | net/ntp/Makefile | 1 | ||||
-rw-r--r-- | net/ntp/files/patch-ntpdc::ntpdc.c | 14 | ||||
-rw-r--r-- | net/ntp/files/patch-ntpq::ntpq.c | 14 |
3 files changed, 29 insertions, 0 deletions
diff --git a/net/ntp/Makefile b/net/ntp/Makefile index 907514ea34d0..37b19fe454a4 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 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; diff --git a/net/ntp/files/patch-ntpq::ntpq.c b/net/ntp/files/patch-ntpq::ntpq.c new file mode 100644 index 000000000000..0a221dd0742b --- /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; |