aboutsummaryrefslogtreecommitdiff
path: root/src/thread/sem_trywait.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread/sem_trywait.c')
-rw-r--r--src/thread/sem_trywait.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/thread/sem_trywait.c b/src/thread/sem_trywait.c
index beb435da..5d46700e 100644
--- a/src/thread/sem_trywait.c
+++ b/src/thread/sem_trywait.c
@@ -11,3 +11,11 @@ int sem_trywait(sem_t *sem)
errno = EAGAIN;
return -1;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif