summaryrefslogtreecommitdiffstats
path: root/newlib/libc/sys/linux/bits/libc-lock.h
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/sys/linux/bits/libc-lock.h')
-rw-r--r--newlib/libc/sys/linux/bits/libc-lock.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/sys/linux/bits/libc-lock.h b/newlib/libc/sys/linux/bits/libc-lock.h
index 2b170444b..5779a6c93 100644
--- a/newlib/libc/sys/linux/bits/libc-lock.h
+++ b/newlib/libc/sys/linux/bits/libc-lock.h
@@ -27,6 +27,8 @@
#include <linuxthreads/internals.h>
#endif
+#define _IO_MTSAFE_IO /* add this as we always want this in newlib */
+
/* Mutex type. */
#if defined(_LIBC) || defined(_IO_MTSAFE_IO)
typedef pthread_mutex_t __libc_lock_t;