Khem Raj <raj.k...@gmail.com> writes:

> GCC-15 complains about this when trying to build on musl

Sorry for late reply, but should be fixed with nettle-3.10.2.

> diff --git a/getopt.c b/getopt.c
> index 9d29de7..5b89302 100644
> --- a/getopt.c
> +++ b/getopt.c
> @@ -136,7 +136,7 @@ static struct _getopt_data getopt_data;
>     whose names are inconsistent.  */
>  
>  #ifndef getenv
> -extern char *getenv ();
> +extern char *getenv (const char *);
>  #endif
>  
>  #endif /* not __GNU_LIBRARY__ */

Just deleting all of the #if block with the old-style declaration of
getenv seems to work too.

Regards,
/Niels

-- 
Niels Möller. PGP key CB4962D070D77D7FCB8BA36271D8F1FF368C6677.
Internet email is subject to wholesale government surveillance.
_______________________________________________
nettle-bugs mailing list -- nettle-bugs@lists.lysator.liu.se
To unsubscribe send an email to nettle-bugs-le...@lists.lysator.liu.se

Reply via email to