aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@exmulti.com>2011-09-06 11:58:42 -0700
committerJeff Garzik <jgarzik@exmulti.com>2011-09-06 11:58:42 -0700
commit074653973ef58918d7426d5bd7f741dadd806a78 (patch)
tree3363305b9a3cf02ec0f0940aa5e4ae36e05d4b5a /src/util.h
parent04f9a37c711c4965cf72b57e99bb9282258fd897 (diff)
parent6a0296791d5e81102a12a3142f5be25cb40f9825 (diff)
Merge pull request #502 from vsrinivas/master
Define MSG_NOSIGNAL to 0 when it is not defined. Gets OpenBSD building.
Diffstat (limited to 'src/util.h')
-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