pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/libfetch/files Be nice to ancient NetBSD releases....



details:   https://anonhg.NetBSD.org/pkgsrc/rev/30cf08373510
branches:  trunk
changeset: 554963:30cf08373510
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sun Feb 22 19:11:48 2009 +0000

description:
Be nice to ancient NetBSD releases. From Hauke Fath.

diffstat:

 net/libfetch/files/common.c |   4 ++--
 net/libfetch/files/ftp.c    |   4 ++--
 net/libfetch/files/http.c   |  14 +++++++++-----
 3 files changed, 13 insertions(+), 9 deletions(-)

diffs (78 lines):

diff -r e51d9f47fe1c -r 30cf08373510 net/libfetch/files/common.c
--- a/net/libfetch/files/common.c       Sun Feb 22 18:17:48 2009 +0000
+++ b/net/libfetch/files/common.c       Sun Feb 22 19:11:48 2009 +0000
@@ -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@localhost>
@@ -42,8 +42,8 @@
 #include <sys/time.h>
 #include <sys/uio.h>
 
+#include <netinet/in.h>
 #include <arpa/inet.h>
-#include <netinet/in.h>
 
 #include <ctype.h>
 #include <errno.h>
diff -r e51d9f47fe1c -r 30cf08373510 net/libfetch/files/ftp.c
--- a/net/libfetch/files/ftp.c  Sun Feb 22 18:17:48 2009 +0000
+++ b/net/libfetch/files/ftp.c  Sun Feb 22 19:11:48 2009 +0000
@@ -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@localhost>
@@ -72,8 +72,8 @@
 #include <sys/types.h>
 #include <sys/socket.h>
 
+#include <netinet/in.h>
 #include <arpa/inet.h>
-#include <netinet/in.h>
 
 #include <ctype.h>
 #include <errno.h>
diff -r e51d9f47fe1c -r 30cf08373510 net/libfetch/files/http.c
--- a/net/libfetch/files/http.c Sun Feb 22 18:17:48 2009 +0000
+++ b/net/libfetch/files/http.c Sun Feb 22 19:11:48 2009 +0000
@@ -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@localhost>
@@ -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"



Home | Main Index | Thread Index | Old Index