head 1.1; access; symbols; locks; strict; comment @ * @; 1.1 date 2026.05.19.07.57.55; author jperkin; state Exp; branches; next ; commitid vL3PQXipy7W7KoGG; desc @@ 1.1 log @getopt: Fix for modern C. @ text @$NetBSD$ Fix for modern C. --- gnu/getopt.h.orig 2026-05-19 07:33:46.925838527 +0000 +++ gnu/getopt.h @@@@ -103,7 +103,7 @@@@ struct option errors, only prototype getopt for the GNU C library. */ extern int getopt (int argc, char *const *argv, const char *shortopts); #else /* not __GNU_LIBRARY__ */ -extern int getopt (); +extern int getopt (int, char *const *, const char *); #endif /* __GNU_LIBRARY__ */ extern int getopt_long (int argc, char *const *argv, const char *shortopts, const struct option *longopts, int *longind); @