diff -ruNb make-4.4.1.orig/lib/fnmatch.c make-4.4.1/lib/fnmatch.c --- make-4.4.1.orig/lib/fnmatch.c 2025-07-17 13:04:06.920464871 +0200 +++ make-4.4.1/lib/fnmatch.c 2025-07-17 13:04:28.010513618 +0200 @@ -117,13 +117,6 @@ || STREQ (string, "cntrl") || STREQ (string, "blank")) # endif -/* Avoid depending on library functions or files - whose names are inconsistent. */ - -# if !defined _LIBC && !defined getenv -extern char *getenv (); -# endif - # ifndef errno extern int errno; # endif diff -ruNb make-4.4.1.orig/src/getopt.c make-4.4.1/src/getopt.c --- make-4.4.1.orig/src/getopt.c 2025-07-17 13:04:06.926464885 +0200 +++ make-4.4.1/src/getopt.c 2025-07-17 13:07:33.623954181 +0200 @@ -202,7 +202,7 @@ whose names are inconsistent. */ #ifndef getenv -extern char *getenv (); +extern char *getenv (const char *); #endif static char * diff -ruNb make-4.4.1.orig/src/getopt.h make-4.4.1/src/getopt.h --- make-4.4.1.orig/src/getopt.h 2025-07-17 13:04:06.926464885 +0200 +++ make-4.4.1/src/getopt.h 2025-07-17 13:09:08.460185842 +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 (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);