summaryrefslogtreecommitdiff
path: root/net/libfetch
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2008-02-07 17:57:28 +0000
committerjoerg <joerg@pkgsrc.org>2008-02-07 17:57:28 +0000
commitfa6deeb353c59d9f60cf3d30c5c654ac855d3290 (patch)
tree2020c9ea6ffd683dbf1a5182ecdf02ceee77edbe /net/libfetch
parent3876527c3f29773a7438c036a9c650d235572830 (diff)
downloadpkgsrc-fa6deeb353c59d9f60cf3d30c5c654ac855d3290.tar.gz
Conditionally declare arg on the existance of the socket options.
Diffstat (limited to 'net/libfetch')
-rw-r--r--net/libfetch/files/ftp.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/net/libfetch/files/ftp.c b/net/libfetch/files/ftp.c
index 2a3d077ed1f..6fc054c63c0 100644
--- a/net/libfetch/files/ftp.c
+++ b/net/libfetch/files/ftp.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ftp.c,v 1.8 2008/02/07 17:47:12 joerg Exp $ */
+/* $NetBSD: ftp.c,v 1.9 2008/02/07 17:57:28 joerg Exp $ */
/*-
* Copyright (c) 1998-2004 Dag-Erling Coïdan Smørgrav
* All rights reserved.
@@ -786,7 +786,10 @@ ftp_transfer(conn_t *conn, const char *oper, const char *file,
} else {
uint32_t a;
uint16_t p;
- int arg, d;
+#if defined(IPV6_PORTRANGE) || defined(IP_PORTRANGE)
+ int arg;
+#endif
+ int d;
char *ap;
char hname[INET6_ADDRSTRLEN];