aboutsummaryrefslogtreecommitdiff
path: root/runtime/GCCLibraries/libpthread/pthread.c
diff options
context:
space:
mode:
authorJohn Criswell <criswell@uiuc.edu>2003-12-10 14:46:36 +0000
committerJohn Criswell <criswell@uiuc.edu>2003-12-10 14:46:36 +0000
commit61eae03b448d9e3fd87254453469d16c48b6eca9 (patch)
treecea8b058a12de8ad56e8ac69ef08836da18240a6 /runtime/GCCLibraries/libpthread/pthread.c
parentb592fc2b8dc5701999704c14e228a98233d20a03 (diff)
Dummy implementation of the pthread library.
This is needed since libstdc++ uses pthread_once(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10360 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime/GCCLibraries/libpthread/pthread.c')
-rw-r--r--runtime/GCCLibraries/libpthread/pthread.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/GCCLibraries/libpthread/pthread.c b/runtime/GCCLibraries/libpthread/pthread.c
new file mode 100644
index 0000000000..cb5818ccc2
--- /dev/null
+++ b/runtime/GCCLibraries/libpthread/pthread.c
@@ -0,0 +1,8 @@
+#include <pthread.h>
+
+int
+pthread_once (pthread_once_t * control, void (*func) (void))
+{
+ return 0;
+}
+