Move pause() define to <sys/systm.h>

This commit is contained in:
Sebastian Huber
2013-10-24 11:37:44 +02:00
parent c8a0f76156
commit 53441c049a
2 changed files with 4 additions and 1 deletions

View File

@@ -348,6 +348,10 @@ int msleep_spin(void *chan, struct mtx *mtx, const char *wmesg, int timo)
#define msleep_spin(chan, mtx, wmesg, timo) \
msleep((chan), (mtx), 0, (wmesg), (timo))
#endif /* __rtems__ */
#ifdef __rtems__
#include <unistd.h>
#define pause _bsd_pause
#endif /* __rtems__ */
int pause(const char *wmesg, int timo);
#define tsleep(chan, pri, wmesg, timo) \
_sleep((chan), NULL, (pri), (wmesg), (timo))