pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/libfetch Use nbcompat.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f389907a2433
branches:  trunk
changeset: 541162:f389907a2433
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Apr 16 01:01:50 2008 +0000

description:
Use nbcompat.

diffstat:

 net/libfetch/Makefile     |   4 +++-
 net/libfetch/files/ftp.c  |  11 ++++++++++-
 net/libfetch/files/http.c |  11 ++++++++++-
 3 files changed, 23 insertions(+), 3 deletions(-)

diffs (84 lines):

diff -r 34cae2a1be64 -r f389907a2433 net/libfetch/Makefile
--- a/net/libfetch/Makefile     Wed Apr 16 00:53:06 2008 +0000
+++ b/net/libfetch/Makefile     Wed Apr 16 01:01:50 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2008/04/08 11:45:49 joerg Exp $
+# $NetBSD: Makefile,v 1.7 2008/04/16 01:01:50 joerg Exp $
 #
 
 DISTNAME=      libfetch-2.4
@@ -15,6 +15,8 @@
 
 PKG_DESTDIR_SUPPORT=   user-destdir
 
+USE_FEATURES=          nbcompat
+
 USE_BSD_MAKEFILE=      yes
 
 INSTALLATION_DIRS=     include lib ${PKGMANDIR}/cat3 ${PKGMANDIR}/man3
diff -r 34cae2a1be64 -r f389907a2433 net/libfetch/files/ftp.c
--- a/net/libfetch/files/ftp.c  Wed Apr 16 00:53:06 2008 +0000
+++ b/net/libfetch/files/ftp.c  Wed Apr 16 01:01:50 2008 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ftp.c,v 1.14 2008/04/05 02:51:14 joerg Exp $   */
+/*     $NetBSD: ftp.c,v 1.15 2008/04/16 01:01:50 joerg Exp $   */
 /*-
  * Copyright (c) 1998-2004 Dag-Erling Coïdan Smørgrav
  * All rights reserved.
@@ -56,6 +56,11 @@
  *
  */
 
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+#include <nbcompat.h>
+
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
@@ -66,7 +71,11 @@
 #include <inttypes.h>
 #include <netdb.h>
 #include <stdarg.h>
+#ifndef NETBSD
+#include <nbcompat/stdio.h>
+#else
 #include <stdio.h>
+#endif
 #include <stdlib.h>
 #include <string.h>
 #include <time.h>
diff -r 34cae2a1be64 -r f389907a2433 net/libfetch/files/http.c
--- a/net/libfetch/files/http.c Wed Apr 16 00:53:06 2008 +0000
+++ b/net/libfetch/files/http.c Wed Apr 16 01:01:50 2008 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: http.c,v 1.11 2008/04/05 02:42:13 joerg Exp $  */
+/*     $NetBSD: http.c,v 1.12 2008/04/16 01:01:50 joerg Exp $  */
 /*-
  * Copyright (c) 2000-2004 Dag-Erling Coïdan Smørgrav
  * All rights reserved.
@@ -61,6 +61,11 @@
  * SUCH DAMAGE.
  */
 
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+#include <nbcompat.h>
+
 #include <sys/types.h>
 #include <sys/socket.h>
 
@@ -69,7 +74,11 @@
 #include <locale.h>
 #include <netdb.h>
 #include <stdarg.h>
+#ifndef NETBSD
+#include <nbcompat/stdio.h>
+#else
 #include <stdio.h>
+#endif
 #include <stdlib.h>
 #include <string.h>
 #include <time.h>



Home | Main Index | Thread Index | Old Index