diff options
author | joerg <joerg> | 2008-04-16 01:01:50 +0000 |
---|---|---|
committer | joerg <joerg> | 2008-04-16 01:01:50 +0000 |
commit | 9a077e74209d6104f7d1c035bf6e39a950932882 (patch) | |
tree | 85e3a611260fcde0f5dc54c4e7130aa70bb24ff2 /net/libfetch | |
parent | 2c348f82040bd54a3f8f1e0c0249e148ad40d9d2 (diff) | |
download | pkgsrc-9a077e74209d6104f7d1c035bf6e39a950932882.tar.gz |
Use nbcompat.
Diffstat (limited to 'net/libfetch')
-rw-r--r-- | net/libfetch/Makefile | 4 | ||||
-rw-r--r-- | net/libfetch/files/ftp.c | 11 | ||||
-rw-r--r-- | net/libfetch/files/http.c | 11 |
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> |