$OpenBSD: patch-freemem_cc,v 1.3 2010/09/23 12:51:13 ajacoutot Exp $ --- freemem.cc.orig Thu Sep 23 14:20:03 2010 +++ freemem.cc Thu Sep 23 14:20:31 2010 @@ -25,6 +25,9 @@ #include #include #include "safeunistd.h" +#ifdef __OpenBSD__ +# include +#endif #ifdef HAVE_SYS_SYSCTL_H # include #endif