Applied the FreeBSD patch from Ralith, closes ticket #95 , slightly changed but basically the same. Thanx Ralith :)

This commit is contained in:
Tomas Lindquist Olsen
2008-10-02 03:25:46 +02:00
parent e77e235307
commit d0c5df393c
7 changed files with 33 additions and 10 deletions

View File

@@ -704,6 +704,12 @@ const LLStructType* DtoMutexType()
return LLStructType::get(types);
}
// FreeBSD
else if (global.params.os == OSFreeBSD) {
// Just a pointer
return LLStructType::get(DtoSize_t(), 0);
}
// pthread_fastlock
std::vector<const LLType*> types2;
types2.push_back(DtoSize_t());