Re: [PATCH] cleanup: Pull in <string.h> for memchr

Guillem Jover <[email protected]>
Newsgroups gmane.linux.debian.devel.dpkg.general
Message-ID <[email protected]>
Hi!

On Tue, 2024-03-19 at 23:48:00 +0900, Simon Richter wrote:
> diff --git a/lib/compat/strnlen.c b/lib/compat/strnlen.c
> index d02bb4bbd..6a7eb0454 100644
> --- a/lib/compat/strnlen.c
> +++ b/lib/compat/strnlen.c
> @@ -22,6 +22,10 @@
>  
>  #include "compat.h"
>  
> +#ifdef HAVE_STRING_H
> +# include <string.h>
> +#endif
> +

Thanks! I ended up including this unconditionally (also because we are
not explicitly checking for this header which should always be there,
and if something else is checking for it, that would be an internal
implementation detail that might change in the future), and before
"compat.h". Now in git main.

Regards,
Guillem
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.