summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2008-04-16 01:01:50 +0000
committerjoerg <joerg@pkgsrc.org>2008-04-16 01:01:50 +0000
commit1326c4fa0437fb853a0b020709332985e531b0ed (patch)
tree85e3a611260fcde0f5dc54c4e7130aa70bb24ff2 /net
parentd82752f969d56953c5ae48158a47f62705b870bc (diff)
downloadpkgsrc-1326c4fa0437fb853a0b020709332985e531b0ed.tar.gz
Use nbcompat.
Diffstat (limited to 'net')
-rw-r--r--net/libfetch/Makefile4
-rw-r--r--net/libfetch/files/ftp.c11
-rw-r--r--net/libfetch/files/http.c11
3 files changed, 23 insertions, 3 deletions
diff --git a/net/libfetch/Makefile b/net/libfetch/Makefile
index 25636448853..bc3a319ba30 100644
--- a/net/libfetch/Makefile
+++ b/net/libfetch/Makefile
@@ -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 @@ COMMENT= Library to access HTTP/FTP server
PKG_DESTDIR_SUPPORT= user-destdir
+USE_FEATURES= nbcompat
+
USE_BSD_MAKEFILE= yes
INSTALLATION_DIRS= include lib ${PKGMANDIR}/cat3 ${PKGMANDIR}/man3
diff --git a/net/libfetch/files/ftp.c b/net/libfetch/files/ftp.c
index 7413362c23d..a9972a2c569 100644
--- a/net/libfetch/files/ftp.c
+++ b/net/libfetch/files/ftp.c
@@ -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 --git a/net/libfetch/files/http.c b/net/libfetch/files/http.c
index e1929af5964..ab389571ec5 100644
--- a/net/libfetch/files/http.c
+++ b/net/libfetch/files/http.c
@@ -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>