From 6a0296791d5e81102a12a3142f5be25cb40f9825 Mon Sep 17 00:00:00 2001 From: Venkatesh Srinivas Date: Tue, 6 Sep 2011 14:54:10 -0400 Subject: [PATCH] Define MSG_NOSIGNAL to 0 on platforms where it is unavailable. Enables building bitcoind on OpenBSD. --- src/util.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/util.h b/src/util.h index 3d7ef108b..4a68051a6 100644 --- a/src/util.h +++ b/src/util.h @@ -81,8 +81,10 @@ T* alignup(T* p) return u.ptr; } -#ifdef __WXMSW__ +#ifndef MSG_NOSIGNAL #define MSG_NOSIGNAL 0 +#endif +#ifdef __WXMSW__ #define MSG_DONTWAIT 0 #ifndef UINT64_MAX #define UINT64_MAX _UI64_MAX