Skip to content

Instantly share code, notes, and snippets.

@sathlan
sathlan / influxdb
Last active August 29, 2015 14:02 — forked from akhenakh/influxdb
pkg install bison flex leveldb protobuf gmake ruby bzr mercurial valgrind leveldb go
export CC=clang
export CGO_CFLAGS="-I/usr/local/include"
export CGO_LDFLAGS="-L/usr/local/lib"
git clone https://github.com/influxdb/influxdb.git
sed -i -e 's,^SHELL.*,SHELL = /usr/local/bin/bash,' Makefile.in
./configure --with-flex=/usr/local/bin/flex --with-bison=/usr/local/bin/bison
gmake
@sathlan
sathlan / patch-main.c
Last active December 26, 2015 04:39 — forked from anonymous/patch-main.c
--- main.c.orig
+++ main.c
@@ -833,7 +833,12 @@ main(int argc, char **argv, char **envp)
mySignal(SIGPIPE, SigPipe);
#endif
+#if GC_VERSION_MAJOR >= 7 && GC_VERSION_MINOR >= 2
+ orig_GC_warn_proc = GC_get_warn_proc();
+ GC_set_warn_proc(wrap_GC_warn_proc);
+#else