beanstalk-client
beanstalk-client copied to clipboard
Compile error on Mac OSX
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
Put the following line in beanstalk.c after includes: #define MSG_NOSIGNAL 0x2000 /* don't raise SIGPIPE */