We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
beanstalk-client/beanstalk.c:267:74: error: use of undeclared identifier 'MSG_NOSIGNAL' return send(fd, message, size, bs_poll ? MSG_DONTWAIT|MSG_NOSIGNAL : MSG_NOSIGNAL);
MSG_NOSIGNAL is not defined on Mac OSX - introduced by #31
The text was updated successfully, but these errors were encountered:
Put the following line in beanstalk.c after includes: #define MSG_NOSIGNAL 0x2000 /* don't raise SIGPIPE */
Sorry, something went wrong.
Explicitly declare BSD's MSG_NOSIGNAL to suppress SIGPIPE
e388e4f
Tested on MacOS High Sierra. Recent BSD manpages for send(2) define MSG_NOSIGNAL to be 0x20000. The MacOS BSD variant doesn't declare MSG_NOSIGNAL, but does honor the value. So, we backport it. See https://www.freebsd.org/cgi/man.cgi?query=send&sektion=2&manpath=FreeBSD+12.1-stable Thanks deepfryed/beanstalk-client#32 (comment) for the hint
No branches or pull requests
beanstalk-client/beanstalk.c:267:74: error: use of undeclared identifier 'MSG_NOSIGNAL'
return send(fd, message, size, bs_poll ? MSG_DONTWAIT|MSG_NOSIGNAL : MSG_NOSIGNAL);
MSG_NOSIGNAL is not defined on Mac OSX - introduced by #31
The text was updated successfully, but these errors were encountered: