--- sharedstreambuf/sharedstreambuf.orig	2013-11-22 08:53:40.000000000 +0100
+++ sharedstreambuf/sharedstreambuf	2013-11-27 14:30:47.000000000 +0100
@@ -1,6 +1,10 @@
 #ifndef INCLUDED_BOBCAT_SHAREDSTREAMBUF_
 #define INCLUDED_BOBCAT_SHAREDSTREAMBUF_
 
+#ifdef __FreeBSD__
+#include <stdio.h>
+#endif
+
 #include <ios>
 #include <streambuf>
 
