$NetBSD$

--- man/texinfo2man.c.orig	Fri Jan 18 06:28:51 2002
+++ man/texinfo2man.c
@@ -1,5 +1,11 @@
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <stdio.h>
+#ifdef HAVE_MALLOC_H
 #include <malloc.h>
+#endif
 #include <string.h>
 #include <ctype.h>
 
