Ignore:
Timestamp:
Sep 7, 2010, 8:15:58 AM (15 years ago)
Author:
[email protected]
Message:

2010-09-07 Zoltan Horvath <[email protected]>

Reviewed by Darin Adler.

REGRESSION(66741): Undefined pthread macros
https://bugs.webkit.org/show_bug.cgi?id=45246

PTHREAD_MUTEX_NORMAL and PTHREAD_MUTEX_DEFAULT (introduced in r60487) are not defined on Linux,
but used in a statement. Add an additional check to test this.

  • wtf/FastMalloc.cpp: (WTF::TCMalloc_PageHeap::initializeScavenger):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/FastMalloc.cpp

    r66741 r66883  
    14941494{
    14951495    // Create a non-recursive mutex.
    1496 #if PTHREAD_MUTEX_NORMAL == PTHREAD_MUTEX_DEFAULT
     1496#if !defined(PTHREAD_MUTEX_NORMAL) || PTHREAD_MUTEX_NORMAL == PTHREAD_MUTEX_DEFAULT
    14971497    pthread_mutex_init(&m_scavengeMutex, 0);
    14981498#else
Note: See TracChangeset for help on using the changeset viewer.