summaryrefslogtreecommitdiff
path: root/textproc/namazu2/patches/patch-af
blob: ce6dd07f3e9630e86d4f288facdc5adeff9ee526 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
$NetBSD: patch-af,v 1.1.1.1 2002/05/31 13:01:41 seb Exp $

--- lib/getopt.c.orig	Mon Oct 11 13:25:11 1999
+++ lib/getopt.c
@@ -71,10 +71,11 @@
 
 #ifdef VMS
 #include <unixlib.h>
+#endif
+
 #if HAVE_STRING_H - 0
 #include <string.h>
 #endif
-#endif
 
 #if defined (WIN32) && !defined (__CYGWIN32__)
 /* It's not Unix, really.  See?  Capital letters.  */
@@ -695,7 +696,7 @@
 		optarg = nameend + 1;
 	      else
 		{
-		  if (opterr)
+		  if (opterr) {
 		   if (argv[optind - 1][1] == '-')
 		    /* --option */
 		    fprintf (stderr,
@@ -706,6 +707,7 @@
 		    fprintf (stderr,
 		     _("%s: option `%c%s' doesn't allow an argument\n"),
 		     argv[0], argv[optind - 1][0], pfound->name);
+		  }
 
 		  nextchar += strlen (nextchar);