Kouhei Sutou
null+****@clear*****
Thu Oct 4 10:24:26 JST 2012
Kouhei Sutou 2011-06-08 22:45:21 +0900 (Wed, 08 Jun 2011) New Revision: 72ffcb328a1d44fe5bdf33f855470345bdc6ab1b https://github.com/mroonga/mroonga/commit/72ffcb328a1d44fe5bdf33f855470345bdc6ab1b Log: fix build failure on MacOS X. pthread_self() returns struct _opaque_pthread_t* not integer family type. So don't cast it to uint. Reported by @issm. Thanks!!! Modified files: ha_mroonga.cc Modified: ha_mroonga.cc (+1 -1) =================================================================== --- ha_mroonga.cc 2011-06-08 11:22:26 +0900 (2ea390a) +++ ha_mroonga.cc 2011-06-08 22:45:21 +0900 (2ee8f8e) @@ -116,7 +116,7 @@ void mrn_logger_func(int level, const char *time, const char *title, if (mrn_logfile_opened) { pthread_mutex_lock(&mrn_log_mutex); fprintf(mrn_logfile, "%s|%c|%08x|%s\n", time, - *(slev + level), (uint)pthread_self(), msg); + *(slev + level), pthread_self(), msg); fflush(mrn_logfile); pthread_mutex_unlock(&mrn_log_mutex); } -------------- next part -------------- HTML����������������������������...下載