X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=opt%2Fnothread%2Fcnd_wait.c;h=444e1d477c4e62868edfdb41894c8bfa2613f3b5;hp=2948d4f2fa27b4711d5104d35472e6da4beb52f8;hb=abc15df6b9fae3374d24c7cf5c3ab94c605b2a6d;hpb=b41576197133c1211d6ec353faf93f505f573b8a diff --git a/opt/nothread/cnd_wait.c b/opt/nothread/cnd_wait.c index 2948d4f..444e1d4 100644 --- a/opt/nothread/cnd_wait.c +++ b/opt/nothread/cnd_wait.c @@ -1,6 +1,18 @@ -#include - -int cnd_wait(cnd_t *cond, mtx_t *mtx) -{ - return thrd_error; -} \ No newline at end of file +#ifndef REGTEST +#include + +int cnd_wait(cnd_t *cond, mtx_t *mtx) +{ + return thrd_error; +} +#endif + +#ifdef TEST +#include "_PDCLIB_test.h" + +int main( void ) +{ + return TEST_RESULTS; +} + +#endif