From eaf4835c65fdf00fe627c800c476324635d974c7 Mon Sep 17 00:00:00 2001 From: John Criswell Date: Wed, 10 Dec 2003 14:46:36 +0000 Subject: [PATCH] Dummy implementation of the pthread library. This is needed since libstdc++ uses pthread_once(). llvm-svn: 10360 --- llvm/runtime/GCCLibraries/libpthread/Makefile | 14 ++++++++++++++ llvm/runtime/GCCLibraries/libpthread/pthread.c | 8 ++++++++ 2 files changed, 22 insertions(+) create mode 100644 llvm/runtime/GCCLibraries/libpthread/Makefile create mode 100644 llvm/runtime/GCCLibraries/libpthread/pthread.c diff --git a/llvm/runtime/GCCLibraries/libpthread/Makefile b/llvm/runtime/GCCLibraries/libpthread/Makefile new file mode 100644 index 000000000000..b3de42840765 --- /dev/null +++ b/llvm/runtime/GCCLibraries/libpthread/Makefile @@ -0,0 +1,14 @@ +##===- runtime/GCCLibraries/libpthread/Makefile ------------*- Makefile -*-===## +# +# The LLVM Compiler Infrastructure +# +# This file was developed by the LLVM research group and is distributed under +# the University of Illinois Open Source License. See LICENSE.TXT for details. +# +##===----------------------------------------------------------------------===## +LEVEL = ../../.. +BYTECODE_LIBRARY=1 +DONT_BUILD_RELINKED=1 +LIBRARYNAME=pthread + +include $(LEVEL)/Makefile.common diff --git a/llvm/runtime/GCCLibraries/libpthread/pthread.c b/llvm/runtime/GCCLibraries/libpthread/pthread.c new file mode 100644 index 000000000000..cb5818ccc2fd --- /dev/null +++ b/llvm/runtime/GCCLibraries/libpthread/pthread.c @@ -0,0 +1,8 @@ +#include + +int +pthread_once (pthread_once_t * control, void (*func) (void)) +{ + return 0; +} +