-
Notifications
You must be signed in to change notification settings - Fork 38.1k
random: scope environ extern to macOS, BSDs and Illumos #33714
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code Coverage & BenchmarksFor details see: https://corecheck.dev/bitcoin/bitcoin/pulls/33714. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK f24ef2b.
f24ef2b to
6feaf36
Compare
|
Testing on some other platforms: hebasto/bitcoin-core-nightly#79. |
Builds on the *BSD and illumos systems failed. |
6feaf36 to
fcdbce4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK fcdbce4.
| #endif | ||
|
|
||
| #ifndef WIN32 | ||
| extern char** environ; // NOLINT(readability-redundant-declaration): Necessary on some platforms |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I think the comment can be kept as-is, or just refer to "Necessary on the above platforms". Otherwise, it is just one more line to maintain.
Also, I wonder if this can just be checked at configure-time, but no strong opinion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re-modified the comment. Not sure there is too much value in moving this to configure.
These platforms fail to compile with it removed.
fcdbce4 to
79d6f45
Compare
These platforms fail to compile with it removed.
macOS: #33675
BSDs / Illumos: hebasto/bitcoin-core-nightly#79.