Skip to content

kernel: add missing include - #27144

Merged
fanquake merged 1 commit into
bitcoin:masterfrom
theuni:fix-csmain-decl
Feb 22, 2023
Merged

fanquake merged 1 commit into
bitcoin:masterfrom
theuni:fix-csmain-decl

Conversation

@theuni

@theuni theuni commented Feb 22, 2023

Copy link
Copy Markdown
Member

This syncs the cs_main definition/declaration.

Noticed when experimenting with the external visibility of cs_main.

Specifically, this is needed for the following to work as intended:

__attribute__ ((visibility ("default"))) extern RecursiveMutex cs_main;

This syncs the cs_main definition/declaration.

Noticed when experimenting with the external visibility of cs_main.
@DrahtBot

DrahtBot commented Feb 22, 2023 •

Copy link
Copy Markdown
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK fanquake

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

@fanquake fanquake left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 49d01f3

@fanquake
fanquake merged commit 174f022 into bitcoin:master Feb 22, 2023
@fanquake
fanquake requested a review from sedited February 22, 2023 18:02
fanquake added a commit that referenced this pull request Mar 4, 2023
8847ce4 util: add missing include and fix function signature (Cory Fields)

Pull request description:

  ping hebasto

  Discovered while testing pre-compiled header support with CMake: https://github.com/theuni/bitcoin/commits/cmake-pch-poc. Compilation of that branch fails without this fix and succeeds with it.

  Similar to the fix in #27144.

  The problem of having a default argument in the definition was masked by the missing include. Using PCH forces that include, so we end up with the compiler error we should've been getting all along.

ACKs for top commit:
  fanquake:
    ACK 8847ce4

Tree-SHA512: 5eb9a6691ee37cbc5033a48aedcbf5c93af3b234614ae14c3fcc858f1ee505f630ad68f8bbb69ffa280080c8d0f91451362cb3819290b741ce906b2b3224a622
@bitcoin bitcoin locked and limited conversation to collaborators Feb 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants