Ignore:
Timestamp:
Jan 13, 2010 1:09:45 PM (14 years ago)
Author:
bennylp
Message:

Initial OpenBSD fixes (#994):
pjlib:

  • Autoconf fixes in detecting header availability
  • Undefined sched_get_priority_max() and sched_get_priority_min()
    • protect with #ifdef _POSIX_PRIORITY_SCHEDULING, and
    • return hardcoded (0, 31) if OpenBSD macro is declared
  • Better GUID generation

pjlib-test:

  • Reduce the loop in PJILB activesock test
  • Fixed bug in ioqueue unregistration test which caused assertion error in destroying mutex

pjlib-util-test:

  • Fixed bug in pjlib-util resolver test
File:
1 edited

Legend:

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

    r2853 r3057  
    309309        return -1; 
    310310 
     311#if defined _POSIX_PRIORITY_SCHEDULING 
    311312    return sched_get_priority_min(policy); 
     313#elif defined __OpenBSD__ 
     314    return 0; 
     315#else 
     316    pj_assert("pj_thread_get_prio_min() not supported!"); 
     317    return 0; 
     318#endif 
    312319} 
    313320 
     
    326333        return -1; 
    327334 
     335#if defined _POSIX_PRIORITY_SCHEDULING 
    328336    return sched_get_priority_max(policy); 
     337#elif defined __OpenBSD__ 
     338    return 31; 
     339#else 
     340    pj_assert("pj_thread_get_prio_max() not supported!"); 
     341    return 0; 
     342#endif 
    329343} 
    330344 
Note: See TracChangeset for help on using the changeset viewer.