Skip to content

Instantly share code, notes, and snippets.

@issm
Created June 8, 2011 18:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save issm/1015079 to your computer and use it in GitHub Desktop.
Save issm/1015079 to your computer and use it in GitHub Desktop.
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