summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorjoerg <joerg>2009-02-22 19:11:48 +0000
committerjoerg <joerg>2009-02-22 19:11:48 +0000
commitef716b32708a8a1c96b96e0aeb9b9c6bbdc6d623 (patch)
treeb190a3ac250761cbebfc5da0f4242d53dc5100b5 /net
parent0b100d913460d62cc37eec61bbb50bcf74508d74 (diff)
downloadpkgsrc-ef716b32708a8a1c96b96e0aeb9b9c6bbdc6d623.tar.gz
Be nice to ancient NetBSD releases. From Hauke Fath.
Diffstat (limited to 'net')
-rw-r--r--net/libfetch/files/common.c4
-rw-r--r--net/libfetch/files/ftp.c4
-rw-r--r--net/libfetch/files/http.c14
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"