Changeset 1068 for pjproject/trunk


Ignore:
Timestamp:
Mar 15, 2007 8:07:13 PM (18 years ago)
Author:
bennylp
Message:

Fixed ticket #181: Failed compilation because usleep() does not return int on some *nix platforms (thanks Jukka-Pekka Kervinen)

File:
1 edited

Legend:

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

    r1042 r1068  
    595595#else 
    596596    PJ_CHECK_STACK(); 
    597     if (usleep(msec * 1000) == 0) 
    598         return PJ_SUCCESS; 
    599  
    600     return PJ_RETURN_OS_ERROR(pj_get_native_os_error()); 
     597 
     598    pj_set_os_error(0); 
     599 
     600    usleep(msec * 1000); 
     601 
     602    return pj_get_os_error(); 
     603; 
    601604#endif  /* PJ_RTEMS */ 
    602605} 
Note: See TracChangeset for help on using the changeset viewer.