Skip to content
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

Use function overloading to handle variations in strerror_r() impleme… #124

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dx9
Copy link
Contributor

@dx9 dx9 commented Jan 28, 2018

?

@zieckey
Copy link
Collaborator

zieckey commented Jan 30, 2018

Do you test on all platforms? MACOSX, windows, linux ?

@dx9
Copy link
Contributor Author

dx9 commented Jan 30, 2018

I've tested it on alpine (XSI), ubuntu (GNU), and OS X (XSI). I don't have windows.

evpp/sockets.cc Outdated
#else
std::string handle_strerror_r(char* s, char* buf) // GNU-specific
Copy link
Collaborator

Choose a reason for hiding this comment

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

Change to const char* s is better.

…ntation.

Avoids using macros or cmake to detect implementation.

Inspired by http://zverovich.net/2015/03/13/reliable-detection-of-strerror-variants.html.

Signed-off-by: John Coyle <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants