$OpenBSD$
--- src/main/getopt.c.orig	Wed Nov 30 20:58:06 2011
+++ src/main/getopt.c	Wed Nov 30 21:00:12 2011
@@ -41,6 +41,7 @@ USA.  */
 #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
