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
ddrescue: fix compilation error related to std::exit #15068
Conversation
Notifying maintainers: |
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.
Changing compilers is not the right fix for a missing include.
- Add include for cstdlib, to fix compilation with older compilers See: https://trac.macports.org/ticket/65300
PR updated |
Retested on 10.7, 10.9, and 10.11, with latest approach. And looks good on all three. |
@raimue Rainer, are you good with merging? |
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.
Looks good to me. 👍
Description
File
loggers.cc
referencesstd::exit
, without includingcstdlib
. This works with some compilers, but not others.Fixes: https://trac.macports.org/ticket/65300
Tested on