-
Notifications
You must be signed in to change notification settings - Fork 38.2k
depends: define __BSD_VISIBLE for FreeBSD bdb build
#26994
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
Conversation
Required for additional definitions (IPC_R & friends), to be available, when compiling under C11. See: maflcko/bitcoin-core-nightly#4.
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. 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. |
hebasto
left a comment
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 0e02f72, tested on FreeBSD 13.1:
$ gmake -C depends bdb
...
Postprocessing bdb...
Caching bdb...
gmake: Leaving directory '/usr/home/hebasto/bitcoin/depends'
| $(package)_config_opts_android=--with-pic | ||
| $(package)_cflags+=-Wno-error=implicit-function-declaration -Wno-error=format-security | ||
| $(package)_cppflags_freebsd=-D_XOPEN_SOURCE=600 | ||
| $(package)_cppflags_freebsd=-D_XOPEN_SOURCE=600 -D__BSD_VISIBLE=1 |
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.
Maybe document that this can be removed along with the bdb removal?
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.
I think we'll delete this file entirely if/when bdb is removed, so probably self-documenting?
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.
Maybe document that this can be removed along with the bdb removal?
It seems inevitable as file name is bdb.mk :)
…build 0e02f72 depends: define `__BSD_VISIBLE` for FreeBSD bdb build (fanquake) Pull request description: Required for additional definitions (`IPC_R` & friends), to be available, when compiling under C11, which would otherwise cause compile fails. See: maflcko/bitcoin-core-nightly#4. ACKs for top commit: hebasto: ACK 0e02f72, tested on FreeBSD 13.1: Tree-SHA512: 885d4aa341d9668da360cf6dfafb97ce816803c54e76c0a06e448db39a723666d42cd14b3e713d17ecbe33163f5af69924567cf449d679a2db95b36357005d43
Required for additional definitions (
IPC_R& friends), to be available, when compiling under C11, which would otherwise cause compile fails.See: maflcko/bitcoin-core-nightly#4.