--- which-2.25/getopt.h.orig 2025-02-01 19:17:56.000000000 +0100 +++ which-2.25/getopt.h 2026-09-12 19:58:28.612866486 +0200 @@ -102,7 +102,7 @@ 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(); */ #endif /* __GNU_LIBRARY__ */ extern int getopt_long(int argc, char *const *argv, const char *shortopts, const struct option *longopts, int *longind); extern int getopt_long_only(int argc, char *const *argv, const char *shortopts, const struct option *longopts,