X-Git-Url: https://pd.if.org/git/?p=pdclib.old;a=blobdiff_plain;f=opt%2Fnothread%2Fmtx_lock.c;h=d086986555dcd48c6808122333bd51bad77b55fd;hp=121444e4b9a255d344825115c0ece923e512d3d7;hb=10f020f1a39804bbef8cd1cf35ef7c9a8e75c7d6;hpb=f7a440b9c7bb0c686dc2368c4ff53b20bf6371f8 diff --git a/opt/nothread/mtx_lock.c b/opt/nothread/mtx_lock.c index 121444e..d086986 100644 --- a/opt/nothread/mtx_lock.c +++ b/opt/nothread/mtx_lock.c @@ -1,5 +1,5 @@ +#ifndef REGTEST #include -#include int mtx_lock(mtx_t *mtx) { @@ -8,6 +8,7 @@ int mtx_lock(mtx_t *mtx) return thrd_success; } else return thrd_error; } +#endif #ifdef TEST #include <_PDCLIB_test.h>