aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/chmboxes.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/chmboxes.c b/src/chmboxes.c
index 63ab01364..59ce0c93a 100644
--- a/src/chmboxes.c
+++ b/src/chmboxes.c
@@ -60,6 +60,7 @@ void chMBReset(Mailbox *mbp) {
chSysUnlock();
}
+#if CH_USE_SEMAPHORES_TIMEOUT
/**
* @brief Posts a message into a mailbox.
* @details The invoking thread waits until a empty slot in the mailbox becomes
@@ -146,6 +147,7 @@ msg_t chMBFetch(Mailbox *mbp, msg_t *msgp, systime_t timeout) {
chSysUnlock();
return rdymsg;
}
+#endif /* CH_USE_SEMAPHORES_TIMEOUT */
#endif /* CH_USE_MAILBOXES */