aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVenkatesh Srinivas <me@endeavour.zapto.org>2011-09-06 14:54:10 -0400
committerVenkatesh Srinivas <me@endeavour.zapto.org>2011-09-06 14:54:10 -0400
commit6a0296791d5e81102a12a3142f5be25cb40f9825 (patch)
tree16c20b055f9ad72b591cd1cf0b0a28e09b90a913 /src
parente39f9256550e3e30965d1d5e6e16d232c3e0e4ac (diff)
Define MSG_NOSIGNAL to 0 on platforms where it is unavailable.
Enables building bitcoind on OpenBSD.
Diffstat (limited to 'src')
-rw-r--r--src/util.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h
index 3d7ef108b4..4a68051a66 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