On Thu, Sep 1, 2022, at 7:18 PM, Paul Eggert wrote:
> Thanks for checking. How about the attached patch instead? It's closer 
> to what you originally suggested.
>
> Zack, any thoughts on this sort of thing?

...
> --- a/doc/autoconf.texi
> +++ b/doc/autoconf.texi
> @@ -5460,9 +5460,8 @@ the @samp{#undef malloc}):
>  #include <config.h>
>  #undef malloc
>  
> -#include <sys/types.h>
> -
> -void *malloc ();
> +#include <stdlib.h>
> +#undef malloc

Why the #undef malloc here?  If I understand what this is doing
correctly, it should be sufficient to #undef malloc after including
config.h (and this is already in place, a few lines above what you
changed).

Otherwise looks good to me.

zw

Reply via email to