harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r589307 - in /harmony/enhanced/drlvm/trunk/vm/include/open: hycomp.h hythread.h hythread_ext.h
Date Sun, 28 Oct 2007 08:52:16 GMT
Author: hindessm
Date: Sun Oct 28 01:52:11 2007
New Revision: 589307

URL: http://svn.apache.org/viewvc?rev=589307&view=rev
Log:
Add FreeBSD support to include files.

Modified:
    harmony/enhanced/drlvm/trunk/vm/include/open/hycomp.h
    harmony/enhanced/drlvm/trunk/vm/include/open/hythread.h
    harmony/enhanced/drlvm/trunk/vm/include/open/hythread_ext.h

Modified: harmony/enhanced/drlvm/trunk/vm/include/open/hycomp.h
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/include/open/hycomp.h?rev=589307&r1=589306&r2=589307&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/include/open/hycomp.h (original)
+++ harmony/enhanced/drlvm/trunk/vm/include/open/hycomp.h Sun Oct 28 01:52:11 2007
@@ -77,7 +77,7 @@
  * <li><code>BOOLEAN</code>      - something that can be zero or non-zero</li>
  * </ul>
  */
-#ifdef LINUX
+#if defined(LINUX) || defined(FREEBSD)
 #if defined(_EM64T_) || defined(_IPF_)
 typedef long int I_64;
 typedef unsigned long int U_64;
@@ -155,7 +155,7 @@
 #endif
 #define PVMCALL VMCALL *
 
-#ifdef LINUX
+#if defined(LINUX) || defined(FREEBSD)
 #define BOOLEAN UDATA
 #endif
 

Modified: harmony/enhanced/drlvm/trunk/vm/include/open/hythread.h
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/include/open/hythread.h?rev=589307&r1=589306&r2=589307&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/include/open/hythread.h (original)
+++ harmony/enhanced/drlvm/trunk/vm/include/open/hythread.h Sun Oct 28 01:52:11 2007
@@ -434,6 +434,10 @@
 #       define HYTHREAD_FAST_TLS (1)
 #       define HYTHREAD_FAST_TLS_ATTRIBUTE __attribute__((tls_model("initial-exec")))
 #   endif
+#elif defined(FREEBSD)
+#   define APR_TLS_USE
+#   define HYTHREAD_FAST_TLS_ATTRIBUTE   
+#   undef HYTHREAD_FAST_TLS
 #else
 #   undef HYTHREAD_FAST_TLS
 #endif

Modified: harmony/enhanced/drlvm/trunk/vm/include/open/hythread_ext.h
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/include/open/hythread_ext.h?rev=589307&r1=589306&r2=589307&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/include/open/hythread_ext.h (original)
+++ harmony/enhanced/drlvm/trunk/vm/include/open/hythread_ext.h Sun Oct 28 01:52:11 2007
@@ -141,11 +141,11 @@
  */
 //@{
 
-#ifdef __linux__
+#if defined(LINUX) || defined(FREEBSD)
 #include <pthread.h>
 #define hymutex_t pthread_mutex_t
 #define hycond_t pthread_cond_t
-#endif // __linux__
+#endif // LINUX || FREEBSD
 
 #ifdef _WIN32
 #define hymutex_t CRITICAL_SECTION
@@ -153,7 +153,7 @@
 #include "hycond_win.h"
 #endif // _WIN32
 
-#ifdef __linux__
+#if defined(__linux__) || defined(FREEBSD) 
 #define osthread_t pthread_t
 #elif _WIN32
 #define osthread_t HANDLE



Mime
View raw message