This shows up only when there is no sys/cdefs.h on a system at all, such as when building on a musl-libc host. sys/cdefs.h is not present at all on musl libc systems, so perhaps this should point at bsd/sys/cdefs.h instead. Example failed build output: ``` clang -std=c11 -I../include/ -O -g -Wall -Wextra -Wpedantic -Wno-missing-field-initializers -Werror -O3 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -finstrument-functions -c -o bworker.o bworker.c In file included from bworker.c:10: In file included from /usr/include/bsd/stdlib.h:39: /usr/include/bsd/libutil.h:43:10: error: 'sys/cdefs.h' file not found with <angled> include; use "quotes" instead #include <sys/cdefs.h> ^ In file included from bworker.c:10: /usr/include/bsd/stdlib.h:45:10: error: 'sys/cdefs.h' file not found with <angled> include; use "quotes" instead #include <sys/cdefs.h> ^ In file included from bworker.c:11: /usr/include/bsd/sys/tree.h:33:10: fatal error: 'sys/cdefs.h' file not found #include <sys/cdefs.h> ^~~~~~~~~~~~~ 3 errors generated. make: *** [Makefile:16: bworker.o] Error 1 ```
This appears to be a regression on commit db7470b048a14bdc69a34fbd192ec626e1786411
And looks like this is fixed in commit 11ec8f1e5dfa1c10e0c9fb94879b6f5b96ba52dd which I am now testing.
The fix has now been released as part of libbsd 0.9.0. Closing.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.