From 0f8fd917f196442193db605379d2fe8d7466300e Mon Sep 17 00:00:00 2001 From: joerg Date: Tue, 14 Apr 2009 17:34:41 +0000 Subject: Always declare optreset. XXX optreset should be removed here, it can't be used correctly with a GNU getopt_long implementation without touching the environment. --- pkgtools/libnbcompat/files/getopt_long.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'pkgtools/libnbcompat/files') diff --git a/pkgtools/libnbcompat/files/getopt_long.c b/pkgtools/libnbcompat/files/getopt_long.c index 84fe1b3b739..fab9ecfc6e5 100644 --- a/pkgtools/libnbcompat/files/getopt_long.c +++ b/pkgtools/libnbcompat/files/getopt_long.c @@ -1,4 +1,4 @@ -/* $NetBSD: getopt_long.c,v 1.10 2009/03/22 22:33:13 joerg Exp $ */ +/* $NetBSD: getopt_long.c,v 1.11 2009/04/14 17:34:41 joerg Exp $ */ /*- * Copyright (c) 2000 The NetBSD Foundation, Inc. @@ -35,7 +35,7 @@ #include #include -__RCSID("$NetBSD: getopt_long.c,v 1.10 2009/03/22 22:33:13 joerg Exp $"); +__RCSID("$NetBSD: getopt_long.c,v 1.11 2009/04/14 17:34:41 joerg Exp $"); #if 0 #include "namespace.h" @@ -66,10 +66,10 @@ __weak_alias(getopt,_getopt) int opterr = 1; /* if error message should be printed */ int optind = 1; /* index into parent argv vector */ int optopt = '?'; /* character checked for validity */ -int optreset; /* reset getopt */ char *optarg; /* argument associated with option */ -#elif HAVE_NBTOOL_CONFIG_H && !HAVE_DECL_OPTRESET -int optreset; +#endif +#if !HAVE_DECL_OPTRESET +int optreset; /* reset getopt */ #endif #if 0 -- cgit v1.2.3