VirtualBox

Changeset 32969 in vbox


Ignore:
Timestamp:
Oct 7, 2010 9:41:40 AM (14 years ago)
Author:
vboxsync
Message:

build fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/semeventmulti-posix.cpp

    r32966 r32969  
    4747
    4848/*******************************************************************************
     49*   Defined Constants And Macros                                               *
     50*******************************************************************************/
     51/** @def IPRT_HAVE_PTHREAD_CONDATTR_SETCLOCK
     52 * Set if the platform implements pthread_condattr_setclock().
     53 * Enables the use of the monotonic clock for waiting on condition variables. */
     54#ifndef IPRT_HAVE_PTHREAD_CONDATTR_SETCLOCK
     55/* Linux detection */
     56# if defined(RT_OS_LINUX) && defined(__USE_XOPEN2K)
     57#  include <features.h>
     58#  if __GLIBC_PREREQ(2,6) /** @todo figure the exact version where this was added */
     59#   define IPRT_HAVE_PTHREAD_CONDATTR_SETCLOCK
     60#  endif
     61# endif
     62/** @todo check other platforms */
     63#endif
     64
     65
     66/*******************************************************************************
    4967*   Structures and Typedefs                                                    *
    5068*******************************************************************************/
     
    110128        if (!rc)
    111129        {
    112 #if defined(CLOCK_MONOTONIC) \
    113  && (   (defined(RT_OS_LINUX) && defined(__USE_XOPEN2K) /** @todo check ancient glibc versions */) \
    114      || /** @todo check other platforms */ 0)
     130#if defined(CLOCK_MONOTONIC) && defined(IPRT_HAVE_PTHREAD_CONDATTR_SETCLOCK)
    115131            /* ASSUMES RTTimeSystemNanoTS() == RTTimeNanoTS() == clock_gettime(CLOCK_MONOTONIC). */
    116132            rc = pthread_condattr_setclock(&CondAttr, CLOCK_MONOTONIC);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette