summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/threadsafe.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1/dietlibc/threadsafe.sh')
-rwxr-xr-xmdk-stage1/dietlibc/threadsafe.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/mdk-stage1/dietlibc/threadsafe.sh b/mdk-stage1/dietlibc/threadsafe.sh
new file mode 100755
index 000000000..67f6f6338
--- /dev/null
+++ b/mdk-stage1/dietlibc/threadsafe.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+(gcc -E - << EOF | grep -q WANT_THREAD_SAFE) || echo libpthread/pthread_*.c
+#include "dietfeatures.h"
+WANT_THREAD_SAFE
+EOF