cygwin-devel vs libbsd-devel: arc4random_stir() macro in stdlib.h breaks bsd/stdlib.h

Corinna Vinschen corinna-cygwin@cygwin.com
Thu Mar 13 17:19:07 GMT 2025


On Mar 13 08:59, Christian Franke via Cygwin wrote:
> Problem introduced in a8891c93:
> 
> $ cygcheck -f /usr/include/stdlib.h
> cygwin-devel-3.6.0-0.430.ga942476236b5
> 
> $ cygcheck -f /usr/include/bsd/stdlib.h
> libbsd-devel-0.12.2-2
> 
> $ gcc -c -xc - <<<'#include <bsd/stdlib.h>'
> In file included from <stdin>:1:
> /usr/include/bsd/stdlib.h:62:26: error: macro "arc4random_stir" passed 1
> arguments, but takes just 0
>    62 | void arc4random_stir(void);
>       |                          ^
> In file included from /usr/include/stdlib.h:26,
>                  from /usr/include/bsd/stdlib.h:32:
> /usr/include/cygwin/stdlib.h:26: note: macro "arc4random_stir" defined here
>    26 | #define arc4random_stir()

Should work again with cygwin-3.6.0-0.431.gad29c33229e5


Thanks,
Corinna


More information about the Cygwin mailing list