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

Activity

  1. added
    type-bugAn unexpected behavior, bug, or error
    testsTests in the Lib/test dir
    3.13only security fixes
    3.14bugs and security fixes
    3.15bugs and security fixes
    3.16new features, bugs and security fixes
    on Jul 19, 2026
  2. added 4 commits that reference this issue on Jul 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions