-
-
Notifications
You must be signed in to change notification settings - Fork 31k
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
gh-89452: Prefer gdbm-compat over ndbm #92208
Conversation
This makes macOS gdbm provided by Homebrew not segfault through correct selection of the linked library (-lgdbm_compat) *AND* the correct ndbm-style header (gdbm-ndbm.h instead of the invalid ndbm.h).
@@ -24,6 +21,9 @@ | |||
#error "No gdbm/ndbm.h or gdbm-ndbm.h available" | |||
#endif | |||
static const char which_dbm[] = "GNU gdbm"; | |||
#elif defined(USE_NDBM) | |||
#include <ndbm.h> | |||
static const char which_dbm[] = "GNU gdbm"; |
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 removed the now stale comment about the OS/2 "EMX port" that was added over 20 years ago.
(I unlinked the PR from the issue because I don't want the PR to close the issue. We need backports first.) |
The two failing RHEL7 buildbots are SIGABRT of an embed process due to an assertion failure like:
This doesn't look related to my changes here. |
Thanks @ambv for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9, 3.10. |
Sorry, @ambv, I could not cleanly backport this to |
Sorry @ambv, I had trouble checking out the |
This makes macOS gdbm provided by Homebrew not segfault through correct
selection of the linked library (
-lgdbm_compat
) AND the correct ndbm-styleheader (
gdbm-ndbm.h
instead of the invalidndbm.h
).Addresses #89452.