Skip to content

Commit

Permalink
Merge pull request #3 from wjwwood/xmlrpcsock_osx_bug
Browse files Browse the repository at this point in the history
Fixes a compile error on OS X due the symbol MSG_NOSIGNAL not being defined on OS X.
  • Loading branch information
dirk-thomas committed Aug 29, 2012
2 parents bafbdad + 18ed315 commit 4a5a5ad
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions utilities/xmlrpcpp/src/XmlRpcSocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ extern "C" {

#endif // MAKEDEPEND

// MSG_NOSIGNAL does not exists on OS X
#if defined(__APPLE__) || defined(__MACH__)
# ifndef MSG_NOSIGNAL
# define MSG_NOSIGNAL SO_NOSIGPIPE
# endif
#endif


using namespace XmlRpc;

Expand Down

0 comments on commit 4a5a5ad

Please sign in to comment.