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.ac

    r5445 r5458  
    266266                  #endif 
    267267                 ]) 
     268 
     269AC_CHECK_FUNC(localtime_r,[AC_DEFINE(PJ_HAS_LOCALTIME_R,1)]) 
     270 
    268271AC_MSG_RESULT([Setting PJ_OS_NAME to $target]) 
    269272AC_DEFINE_UNQUOTED(PJ_OS_NAME,["$target"]) 
Note: See TracChangeset for help on using the changeset viewer.