$OpenBSD: patch-config_h_in,v 1.3 2010/05/04 14:42:28 ajacoutot Exp $
--- config.h.in.orig	Tue Mar 16 19:47:49 2010
+++ config.h.in	Tue May  4 16:41:43 2010
@@ -3,6 +3,14 @@
 /* Define if building universal (internal helper macro) */
 #undef AC_APPLE_UNIVERSAL_BUILD
 
+#ifndef _OPENBSD_BLKCNT_
+#define _OPENBSD_BLKCNT_
+#ifdef __OpenBSD__
+#include <sys/types.h>
+typedef int32_t blkcnt_t;
+#endif
+#endif
+
 /* Compile-time options displayed in -v output */
 #undef AIDECOMPILEOPTIONS
 
