Index: src/hash.c
--- src/hash.c.orig
+++ src/hash.c
@@ -19,7 +19,7 @@ the Free Software Foundation, Inc., 675 Mass Ave, Camb
 
 #include <stdio.h>
 #include <string.h>	/* For strdup() */
-#ifdef __APPLE__
+#if defined(__APPLE__) || defined(__OpenBSD__)
 #include <stdlib.h>
 #else
 #include <malloc.h>
