Added define for osx

yamux
John Jones 2017-07-17 15:20:28 -05:00
parent 3b52948b3b
commit 8bf4e3cf07
1 changed files with 6 additions and 0 deletions

View File

@ -60,6 +60,12 @@ THE SOFTWARE.
#include <windows.h>
#endif
#if defined(__APPLE__) || defined(__MACH__)
#ifndef MSG_NOSIGNAL
#define MSG_NOSIGNAL SO_NOSIGPIPE
#endif
#endif
#include "libp2p/routing/dht.h"
#ifndef HAVE_MEMMEM