Changeset 5277


Ignore:
Timestamp:
Apr 13, 2016 6:24:48 AM (9 years ago)
Author:
riza
Message:

Fixed #1912: Build Error on Alpine linux (musl libc).

Location:
pjproject/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/os_core_unix.c

    r5012 r5277  
    11261126#if (defined(PJ_LINUX) && PJ_LINUX!=0) || \ 
    11271127    defined(PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE) 
    1128         rc = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_FAST_NP); 
     1128        rc = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_NORMAL); 
    11291129#elif (defined(PJ_RTEMS) && PJ_RTEMS!=0) || \ 
    11301130       defined(PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE) 
     
    11361136#if (defined(PJ_LINUX) && PJ_LINUX!=0) || \ 
    11371137     defined(PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE) 
    1138         rc = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP); 
     1138        rc = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); 
    11391139#elif (defined(PJ_RTEMS) && PJ_RTEMS!=0) || \ 
    11401140       defined(PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE) 
  • pjproject/trunk/pjsip-apps/src/samples/siprtp.c

    r5241 r5277  
    11371137        return; 
    11381138    } 
    1139     tp.__sched_priority = max_prio; 
     1139    tp.sched_priority = max_prio; 
    11401140 
    11411141    rc = sched_setscheduler(0, POLICY, &tp); 
     
    11461146 
    11471147    PJ_LOG(4, (THIS_FILE, "New process policy=%d, priority=%d", 
    1148               policy, tp.__sched_priority)); 
     1148              policy, tp.sched_priority)); 
    11491149 
    11501150    /* 
     
    11591159 
    11601160    PJ_LOG(4, (THIS_FILE, "Old thread policy=%d, priority=%d", 
    1161               policy, tp.__sched_priority)); 
     1161              policy, tp.sched_priority)); 
    11621162 
    11631163    policy = POLICY; 
    1164     tp.__sched_priority = max_prio; 
     1164    tp.sched_priority = max_prio; 
    11651165 
    11661166    rc = pthread_setschedparam(pthread_self(), policy, &tp); 
     
    11721172 
    11731173    PJ_LOG(4, (THIS_FILE, "New thread policy=%d, priority=%d", 
    1174               policy, tp.__sched_priority)); 
     1174              policy, tp.sched_priority)); 
    11751175} 
    11761176 
Note: See TracChangeset for help on using the changeset viewer.