$OpenBSD: patch-src_getopt_c,v 1.1.1.1 2001/01/17 16:32:52 naddy Exp $
--- src/getopt.c.orig	Wed Sep  1 15:49:35 1999
+++ src/getopt.c	Mon Jan 15 16:45:15 2001
@@ -43,6 +43,7 @@
 #endif
 
 #include <stdio.h>
+#include <string.h>
 
 /* Comment out all this code if we are using the GNU C Library, and are not
    actually compiling the library itself.  This code is part of the GNU C
@@ -649,7 +650,7 @@ int
 					optarg = nameend + 1;
 				else
 				{
-					if (opterr)
+					if (opterr) {
 						if (argv[optind - 1][1] == '-')
 							/* --option */
 							fprintf(stderr,
@@ -660,6 +661,7 @@ int
 							fprintf(stderr,
 								_("%s: option `%c%s' doesn't allow an argument\n"),
 								argv[0], argv[optind - 1][0], pfound->name);
+					}
 
 					nextchar += strlen(nextchar);
 
