Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ad-hoc patch to build mroonga on Mac OSX
--- groonga-storage-engine-0.6/ha_mroonga.cc 2011-05-29 20:11:11.000000000 +0900
+++ groonga-storage-engine-0.6-fix/ha_mroonga.cc 2011-06-09 03:20:08.000000000 +0900
@@ -93,7 +93,7 @@
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), (uint)(unsigned long int)pthread_self(), msg);
fflush(mrn_logfile);
pthread_mutex_unlock(&mrn_log_mutex);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment