diff options
author | Yuri <yuri@tsoft.com> | 2017-01-13 00:24:00 -0800 |
---|---|---|
committer | Yuri <yuri@tsoft.com> | 2017-01-13 00:24:00 -0800 |
commit | 68f80d260baeef5ec82a2b9c2fb729648994d71c (patch) | |
tree | 46f23ca1ff190a91f6240f68a4c1c3bd3880a82f | |
parent | 27a97a8280813ec05a5209811c40ab23203bb292 (diff) |
Fixed FreeBSD build failure due to undefined MSG_NOSIGNAL.
-rw-r--r-- | testing/irc_syncbot.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/testing/irc_syncbot.c b/testing/irc_syncbot.c index b63b6151..783be51a 100644 --- a/testing/irc_syncbot.c +++ b/testing/irc_syncbot.c | |||
@@ -23,6 +23,10 @@ | |||
23 | #define MSG_NOSIGNAL 0 | 23 | #define MSG_NOSIGNAL 0 |
24 | #endif | 24 | #endif |
25 | 25 | ||
26 | #if defined(__FreeBSD__) && !defined(MSG_NOSIGNAL) | ||
27 | #define MSG_NOSIGNAL 0x20000 // only defined on FreeBSD for some __POSIX_VISIBLE, causes compilation failures | ||
28 | #endif | ||
29 | |||
26 | //IRC name and channel. | 30 | //IRC name and channel. |
27 | #define IRC_NAME "Tox_syncbot" | 31 | #define IRC_NAME "Tox_syncbot" |
28 | #define IRC_CHANNEL "#tox-real-ontopic" | 32 | #define IRC_CHANNEL "#tox-real-ontopic" |