Index: MojoShader/mojoshader_internal.h
--- MojoShader/mojoshader_internal.h.orig
+++ MojoShader/mojoshader_internal.h
@@ -16,7 +16,9 @@
 
 /* FIXME: These includes are needed for alloca :( */
 #include <stdlib.h>
-#ifndef __APPLE__
+#ifdef __OpenBSD__
+#include <sys/malloc.h>
+#elif !defined(__APPLE__)
 #include <malloc.h>
 #endif
 
