• Teodor Mircea Ionita's avatar
    MDEV-15778: Fix TokuDB build issues on macOS 10.13.4 · 7053e26e
    Teodor Mircea Ionita authored
    Several issues were encountered and fixed as explained bellow:
    
    * missing link to dbug lib;
    * user proper fprintf format specifier;
    * ZERO_COND_INITIALIZER was using wrong toku_cond_t struct
      initializer for first member of type pthread_cond_t and
      not considering the TOKU_PTHREAD_DEBUG case which has
      one extra struct member of type pfs_key_t;
    * Remove likely(!opt_debug_sync_timeout), argument is
      declared extern and not available to Toku;
    * pthread_mutex_timedlock() is not available in pthreads
      for Mac, as it's not part of the POSIX pthreads spec.
      The encompassing event_t::wait(ms) methods are unused,
      thus have been removed;
    7053e26e
tokudb_thread.h 13.9 KB