diff options
author | joerg <joerg> | 2008-02-07 17:57:28 +0000 |
---|---|---|
committer | joerg <joerg> | 2008-02-07 17:57:28 +0000 |
commit | 9e392bf261eaa78d5c70a2a11105c82e16ec6ca0 (patch) | |
tree | 2020c9ea6ffd683dbf1a5182ecdf02ceee77edbe /net | |
parent | 63b68b8fbed88f2059f20c886b1bb8d5d8552755 (diff) | |
download | pkgsrc-9e392bf261eaa78d5c70a2a11105c82e16ec6ca0.tar.gz |
Conditionally declare arg on the existance of the socket options.
Diffstat (limited to 'net')
-rw-r--r-- | net/libfetch/files/ftp.c | 7 |
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]; |