# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/make/hotfix-getopt.patch.musl # Copyright (C) 2025 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- --- a/src/getopt.c +++ b/src/getopt.c @@ -202,7 +202,7 @@ static char *posixly_correct; whose names are inconsistent. */ #ifndef getenv -extern char *getenv (); +extern char *getenv (const char *); #endif static char * --- a/src/getopt.h +++ b/src/getopt.h @@ -102,7 +102,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); --- make-4.4.1/lib/fnmatch.c.vanilla 2025-06-05 22:39:12.192696264 +0200 +++ make-4.4.1/lib/fnmatch.c 2025-06-05 22:39:20.829675517 +0200 @@ -121,7 +121,7 @@ whose names are inconsistent. */ # if !defined _LIBC && !defined getenv -extern char *getenv (); +extern char *getenv (const char *); # endif # ifndef errno