summaryrefslogtreecommitdiff
path: root/drivers/unix/thread_posix.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/unix/thread_posix.h')
-rw-r--r--drivers/unix/thread_posix.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/unix/thread_posix.h b/drivers/unix/thread_posix.h
index 15c9265e6d..ea2de61bd5 100644
--- a/drivers/unix/thread_posix.h
+++ b/drivers/unix/thread_posix.h
@@ -35,7 +35,7 @@
@author Juan Linietsky <reduzio@gmail.com>
*/
-#if defined(UNIX_ENABLED) || defined(PTHREAD_ENABLED)
+#if (defined(UNIX_ENABLED) || defined(PTHREAD_ENABLED)) && !defined(NO_THREADS)
#include "os/thread.h"
#include <pthread.h>