$NetBSD: patch-aa,v 1.2 2013/04/11 11:45:44 adam Exp $

--- getopt.c.orig	2003-01-23 21:51:24.000000000 +0100
+++ getopt.c
@@ -58,6 +58,7 @@
 #include <string.h>
 #include <unistd.h>
 #include <ctype.h>
+#include <locale.h>
 
 #if LIBCGETOPT
 #include <getopt.h>
