]> pd.if.org Git - pdclib.old/blobdiff - opt/nothread/cnd_wait.c
[dlmalloc] correct definition of MMAP
[pdclib.old] / opt / nothread / cnd_wait.c
index 2948d4f2fa27b4711d5104d35472e6da4beb52f8..54c3917cbf1356d1923cefd0c13b0c849f61240e 100644 (file)
@@ -1,6 +1,18 @@
+#ifndef REGTEST\r
 #include <threads.h>\r
 \r
 int cnd_wait(cnd_t *cond, mtx_t *mtx)\r
 {\r
        return thrd_error;\r
-}
\ No newline at end of file
+}\r
+#endif\r
+\r
+#ifdef TEST\r
+#include <_PDCLIB_test.h>\r
+\r
+int main( void )\r
+{\r
+    return TEST_RESULTS;\r
+}\r
+\r
+#endif\r