$NetBSD$

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