diff options
author | joerg <joerg@pkgsrc.org> | 2009-02-22 19:11:48 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2009-02-22 19:11:48 +0000 |
commit | c06ff1bd5f3c224d83c1656330a2950e71b6f108 (patch) | |
tree | b190a3ac250761cbebfc5da0f4242d53dc5100b5 /net/libfetch | |
parent | d0cf97253a88cd6f7445d2d7a4a0bbf52e9eb588 (diff) | |
download | pkgsrc-c06ff1bd5f3c224d83c1656330a2950e71b6f108.tar.gz |
Be nice to ancient NetBSD releases. From Hauke Fath.
Diffstat (limited to 'net/libfetch')
-rw-r--r-- | net/libfetch/files/common.c | 4 | ||||
-rw-r--r-- | net/libfetch/files/ftp.c | 4 | ||||
-rw-r--r-- | net/libfetch/files/http.c | 14 |
3 files changed, 13 insertions, 9 deletions
diff --git a/net/libfetch/files/common.c b/net/libfetch/files/common.c index 9a4325acc1d..bd21e88003e 100644 --- a/net/libfetch/files/common.c +++ b/net/libfetch/files/common.c @@ -1,4 +1,4 @@ -/* $NetBSD: common.c,v 1.17 2009/02/05 16:59:45 joerg Exp $ */ +/* $NetBSD: common.c,v 1.18 2009/02/22 19:11:48 joerg Exp $ */ /*- * Copyright (c) 1998-2004 Dag-Erling Coïdan Smørgrav * Copyright (c) 2008 Joerg Sonnenberger <joerg@NetBSD.org> @@ -42,8 +42,8 @@ #include <sys/time.h> #include <sys/uio.h> -#include <arpa/inet.h> #include <netinet/in.h> +#include <arpa/inet.h> #include <ctype.h> #include <errno.h> diff --git a/net/libfetch/files/ftp.c b/net/libfetch/files/ftp.c index ee286faf81b..0ad6aa69bfa 100644 --- a/net/libfetch/files/ftp.c +++ b/net/libfetch/files/ftp.c @@ -1,4 +1,4 @@ -/* $NetBSD: ftp.c,v 1.26 2009/02/05 16:59:45 joerg Exp $ */ +/* $NetBSD: ftp.c,v 1.27 2009/02/22 19:11:48 joerg Exp $ */ /*- * Copyright (c) 1998-2004 Dag-Erling Coïdan Smørgrav * Copyright (c) 2008, 2009 Joerg Sonnenberger <joerg@NetBSD.org> @@ -72,8 +72,8 @@ #include <sys/types.h> #include <sys/socket.h> -#include <arpa/inet.h> #include <netinet/in.h> +#include <arpa/inet.h> #include <ctype.h> #include <errno.h> diff --git a/net/libfetch/files/http.c b/net/libfetch/files/http.c index b1c5745b092..50ca3dda034 100644 --- a/net/libfetch/files/http.c +++ b/net/libfetch/files/http.c @@ -1,4 +1,4 @@ -/* $NetBSD: http.c,v 1.21 2009/02/05 16:59:45 joerg Exp $ */ +/* $NetBSD: http.c,v 1.22 2009/02/22 19:11:48 joerg Exp $ */ /*- * Copyright (c) 2000-2004 Dag-Erling Coïdan Smørgrav * Copyright (c) 2003 Thomas Klausner <wiz@NetBSD.org> @@ -83,10 +83,8 @@ #include <locale.h> #include <stdarg.h> #ifndef NETBSD -#include <nbcompat/netdb.h> #include <nbcompat/stdio.h> #else -#include <netdb.h> #include <stdio.h> #endif #include <stdlib.h> @@ -94,11 +92,17 @@ #include <time.h> #include <unistd.h> -#include <arpa/inet.h> - #include <netinet/in.h> #include <netinet/tcp.h> +#ifndef NETBSD +#include <nbcompat/netdb.h> +#else +#include <netdb.h> +#endif + +#include <arpa/inet.h> + #include "fetch.h" #include "common.h" #include "httperr.h" |