Changeset 393

Show
Ignore:
Timestamp:
02/03/10 15:06:05 (6 months ago)
Author:
bart
Message:

Fix spinlocks on Solaris with Sun Compiler. #325

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • eaccelerator/trunk/ChangeLog

    r392 r393  
    1111                Instead of using a fake select as yield, a check is added to disable 
    1212                spinlocks on systems that do not have sched_yield. 
     13                * Fix spinlocks on Solaris with Sun Compiler. #325 
    1314 
    14152010-02-02  Bart Vanbrabant <bart at vanbrabant.eu> 
  • eaccelerator/trunk/mm.c

    r392 r393  
    178178#if defined(MM_SEM_SPINLOCK) 
    179179 
    180 #if !defined(__GNUC__) || !(defined(__i386__) || defined(__x86_64__)) 
     180#if !((defined(__GNUC__) || !defined(__SUNPRO_C)) && \ 
     181    (defined(__i386__) || defined(__i386) || defined(__x86_64__))) 
    181182#  error "spinlocks are not implemented for your system" 
    182183#endif