diff gen/tollvm.cpp @ 637:29dc68c949b0

Applied the FreeBSD patch from Ralith, closes ticket #95 , slightly changed but basically the same. Thanx Ralith :)
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Thu, 02 Oct 2008 03:25:46 +0200
parents df196c8dea26
children 8d850fa25713
line wrap: on
line diff
--- a/gen/tollvm.cpp	Thu Oct 02 01:42:21 2008 +0200
+++ b/gen/tollvm.cpp	Thu Oct 02 03:25:46 2008 +0200
@@ -704,6 +704,12 @@
         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());