$NetBSD: patch-ab,v 1.1 2009/09/26 05:48:02 taca Exp $

* Fix for NetBSD 4.*.

--- mkpasswd.c.orig	2008-07-17 07:43:47.000000000 +0900
+++ mkpasswd.c
@@ -56,6 +56,11 @@ static const struct option longopts[] = 
 };
 #endif
 
+#ifdef NEED_OPTARG
+extern char *optarg;
+extern int optind;
+#endif
+
 static const char valid_salts[] = "abcdefghijklmnopqrstuvwxyz"
 "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789./";
 
