--- diffiehellman/diffiehellman.orig	2013-10-01 16:50:39 UTC
+++ diffiehellman/diffiehellman
@@ -1,6 +1,10 @@
 #ifndef INCLUDED_BOBCAT_DIFFIEHELLMAN_
 #define INCLUDED_BOBCAT_DIFFIEHELLMAN_
 
+#if defined(__FreeBSD__) || defined(__DragonFly__)
+#include <sys/types.h>
+#endif
+
 #include <memory>
 #include <iosfwd>
 
