Skip to content

_testcapimodule.c does not compile on NetBSD: false positive from the stdbool.h guard #154144

Description

@serhiy-storchaka

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixes3.14bugs and security fixes3.15pre-release feature fixes, bugs and security fixes3.16new features, bugs and security fixesOS-netbsdtestsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions