bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getrandom.c doesn't compile on x86_64-pc-linux-uclibc


From: Bruno Haible
Subject: Re: getrandom.c doesn't compile on x86_64-pc-linux-uclibc
Date: Thu, 13 Aug 2020 22:37:12 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-186-generic; KDE/5.18.0; x86_64; ; )

Paul Eggert wrote:
> Should those changes to m4/getrandom.m4 and m4/sys_random_h.m4 also have 
> "#include <stddef.h>" lines inserted after the newly-modified C comments? 
> That 
> way, these .m4 files would match the change to lib/sys_random.in.h.

>From the error message, we can see that uClibc's <sys/random.h> merely needs
'size_t' to be defined. Whether it is through <stddef.h> or <stdlib.h>, does
not matter.

In lib/sys_random.in.h I used <stddef.h>, because
  - it's more "minimal" than <stdlib.h>: it defines fewer unrelated symbols,
  - it is less likely to cause problems with mutual inclusion of gnulib
    overridden header files.

I don't object to adding '#include <stddef.h>' in the two *.m4 files. It's
redundant, but it won't hurt either.

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]