aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeff Garzik <[email protected]>2011-09-06 11:58:42 -0700
committerJeff Garzik <[email protected]>2011-09-06 11:58:42 -0700
commit074653973ef58918d7426d5bd7f741dadd806a78 (patch)
tree3363305b9a3cf02ec0f0940aa5e4ae36e05d4b5a /src
parentMerge pull request #501 from paraipanakos/master (diff)
parentDefine MSG_NOSIGNAL to 0 on platforms where it is unavailable. (diff)
downloaddiscoin-074653973ef58918d7426d5bd7f741dadd806a78.tar.xz
discoin-074653973ef58918d7426d5bd7f741dadd806a78.zip
Merge pull request #502 from vsrinivas/master
Define MSG_NOSIGNAL to 0 when it is not defined. Gets OpenBSD building.
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 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