summaryrefslogtreecommitdiff
path: root/net
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
commitb5978b75bbcbb12e17d9d96c42a56fdecf1bb252 (patch)
tree2020c9ea6ffd683dbf1a5182ecdf02ceee77edbe /net
parent62b37530604e23d34223ca08779344c642ff0253 (diff)
downloadpkgsrc-b5978b75bbcbb12e17d9d96c42a56fdecf1bb252.tar.gz
Conditionally declare arg on the existance of the socket options.
Diffstat (limited to 'net')
-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];