From 8bf4e3cf075c117cad0a9da4e3f954b150fb019e Mon Sep 17 00:00:00 2001 From: John Jones Date: Mon, 17 Jul 2017 15:20:28 -0500 Subject: [PATCH] Added define for osx --- routing/dht.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/routing/dht.c b/routing/dht.c index 53163ec..0e210b6 100644 --- a/routing/dht.c +++ b/routing/dht.c @@ -60,6 +60,12 @@ THE SOFTWARE. #include #endif +#if defined(__APPLE__) || defined(__MACH__) +#ifndef MSG_NOSIGNAL +#define MSG_NOSIGNAL SO_NOSIGPIPE +#endif +#endif + #include "libp2p/routing/dht.h" #ifndef HAVE_MEMMEM