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
This commit is contained in:
John Criswell 2003-12-10 14:46:36 +00:00
parent b592fc2b8d
commit 61eae03b44
2 changed files with 22 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,8 @@
#include <pthread.h>
int
pthread_once (pthread_once_t * control, void (*func) (void))
{
return 0;
}