serhiy-storchaka · GitHub

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

Read the original on github.com ↗