Re: glibc and cdefs.h

2018-06-24 Thread Bruno Haible
Hi Paul, > I would like to keep Gnulib cdefs.h in sync with glibc as much as > possible, and installed the attached. The __nonnull handling here is more risky than my patch. But it works on FreeBSD 11. > I hope this sort of thing is a one-off. > > I guess you're suggesting two include files? c

Re: glibc and cdefs.h

2018-06-24 Thread Paul Eggert
Bruno Haible wrote: IMO the only way to reliably use would be that after including it, you don't include any system headers any more. Thanks for checking the port to FreeBSD 11. It appears that the problem is planned to go away in FreeBSD 12 (they've removed the cdefs.h __inline #define in t

Re: glibc and cdefs.h

2018-06-23 Thread Bruno Haible
Hi Paul, > installed the attached patches. The first two merely merge changes from > glibc and cleanup, the last one fixes the bug and adds a test case. A testdir for 'random_r' produces a compilation failure on FreeBSD 11: cc -DHAVE_CONFIG_H -I. -I../../gllib -I.. -DGNULIB_STRICT_CHECKING=1