$NetBSD: patch-af,v 1.1 2001/09/24 03:56:02 taca 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);
 
