pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/libfetch/files Conditionally declare arg on the ex...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2eabd4809274
branches:  trunk
changeset: 538408:2eabd4809274
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Feb 07 17:57:28 2008 +0000

description:
Conditionally declare arg on the existance of the socket options.

diffstat:

 net/libfetch/files/ftp.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 2b599b28b4db -r 2eabd4809274 net/libfetch/files/ftp.c
--- a/net/libfetch/files/ftp.c  Thu Feb 07 17:47:12 2008 +0000
+++ b/net/libfetch/files/ftp.c  Thu Feb 07 17:57:28 2008 +0000
@@ -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 @@
        } 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];
 



Home | Main Index | Thread Index | Old Index