c7ad5c4afa
Somewhat more than 11 rooms later... PKG_DESTDIR_SUPPORT
21 lines
614 B
Text
21 lines
614 B
Text
$NetBSD: patch-ab,v 1.5 2009/12/18 01:09:23 abs Exp $
|
|
|
|
--- src/common/getopt.c.orig 1996-04-17 18:17:39.000000000 +0000
|
|
+++ src/common/getopt.c
|
|
@@ -73,6 +73,7 @@ char *alloca ();
|
|
#include <stdlib.h>
|
|
#else /* Not GNU C library. */
|
|
#define __alloca alloca
|
|
+#include <stdlib.h>
|
|
#endif /* GNU C library. */
|
|
|
|
/* If GETOPT_COMPAT is defined, `+' as well as `--' can introduce a
|
|
@@ -444,7 +445,7 @@ _getopt_internal (argc, argv, optstring,
|
|
int exact = 0;
|
|
int ambig = 0;
|
|
const struct option *pfound = NULL;
|
|
- int indfound;
|
|
+ int indfound = 0;
|
|
|
|
while (*s && *s != '=')
|
|
s++;
|