Added define for osx

This commit is contained in:
John Jones 2017-07-17 15:20:28 -05:00
parent 3b52948b3b
commit 8bf4e3cf07

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