Bug report
Building fails on NetBSD:
./Modules/_testcapimodule.c:30:4: error: #error "The public headers should not include <stdbool.h>, see gh-48924"
The guard sits after #include <sys/sysctl.h>, and NetBSD's sys/sysctl.h legitimately includes <stdbool.h>, so it fires falsely. It should be moved above the system includes.
The comment also references the wrong issue: gh-90904 was meant (mangled bpo→gh conversion of bpo-46748).
Linked PRs
- gh-154144: Fix false positive from the stdbool.h guard in _testcapimodule.c #154145
- [3.15] gh-154144: Fix false positive from the stdbool.h guard in _testcapimodule.c (GH-154145) #154157
- [3.14] gh-154144: Fix false positive from the stdbool.h guard in _testcapimodule.c (GH-154145) #154158
- [3.13] gh-154144: Fix false positive from the stdbool.h guard in _testcapimodule.c (GH-154145) #154159