Reimport of package namazu from japanese/namazu2 into textproc/namazu2.
[pkgsrcv2.git] / textproc / namazu2 / patches / patch-af
1 $NetBSD$
2
3 --- lib/getopt.c.orig   Mon Oct 11 13:25:11 1999
4 +++ lib/getopt.c
5 @@ -71,10 +71,11 @@
6  
7  #ifdef VMS
8  #include <unixlib.h>
9 +#endif
10 +
11  #if HAVE_STRING_H - 0
12  #include <string.h>
13  #endif
14 -#endif
15  
16  #if defined (WIN32) && !defined (__CYGWIN32__)
17  /* It's not Unix, really.  See?  Capital letters.  */
18 @@ -695,7 +696,7 @@
19                 optarg = nameend + 1;
20               else
21                 {
22 -                 if (opterr)
23 +                 if (opterr) {
24                    if (argv[optind - 1][1] == '-')
25                     /* --option */
26                     fprintf (stderr,
27 @@ -706,6 +707,7 @@
28                     fprintf (stderr,
29                      _("%s: option `%c%s' doesn't allow an argument\n"),
30                      argv[0], argv[optind - 1][0], pfound->name);
31 +                 }
32  
33                   nextchar += strlen (nextchar);
34