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

Christian Franke Christian.Franke@t-online.de
Thu Mar 13 07:59:36 GMT 2025


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()


-- 
Regards,
Christian



More information about the Cygwin mailing list