$OpenBSD: patch-src_main_c,v 1.2 2021/06/05 03:50:40 rsadowski Exp $

Index: src/main.c
--- src/main.c.orig
+++ src/main.c
@@ -27,7 +27,9 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
+#ifdef HAVE_MALLOC_H
 #include <malloc.h>
+#endif
 #include <libintl.h>
 #include <dlfcn.h>
 #include <dirent.h>
