Ignore:
Timestamp:
Oct 13, 2016 4:32:29 AM (8 years ago)
Author:
riza
Message:

Re #1945 (misc): Use localtime_r() instead of localtime() (if available) since localtime() is not thread safe.
This fixes a data race in pj_time_decode() which is called from multiple threads.
Thanks to Kal (b17 c0de) for the patch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/aconfigure

    r5445 r5458  
    54155415 
    54165416 
     5417ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r" 
     5418if test "x$ac_cv_func_localtime_r" = xyes; then : 
     5419  $as_echo "#define PJ_HAS_LOCALTIME_R 1" >>confdefs.h 
     5420 
     5421fi 
     5422 
    54175423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_OS_NAME to $target" >&5 
    54185424$as_echo "Setting PJ_OS_NAME to $target" >&6; } 
Note: See TracChangeset for help on using the changeset viewer.