$NetBSD: patch-ab,v 1.8 2013/12/31 16:14:15 jakllsch Exp $

--- man/texinfo2man.c.orig	2008-03-11 18:50:42.000000000 +0000
+++ man/texinfo2man.c
@@ -1,6 +1,12 @@
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <stdio.h>
 #include <stdlib.h>
+#ifdef HAVE_MALLOC_H
 #include <malloc.h>
+#endif
 #include <string.h>
 #include <ctype.h>
 
