summaryrefslogtreecommitdiff
path: root/builtins/gen-helpfiles.c
diff options
context:
space:
mode:
Diffstat (limited to 'builtins/gen-helpfiles.c')
-rw-r--r--builtins/gen-helpfiles.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/builtins/gen-helpfiles.c b/builtins/gen-helpfiles.c
index b3144974..fac34edf 100644
--- a/builtins/gen-helpfiles.c
+++ b/builtins/gen-helpfiles.c
@@ -59,6 +59,14 @@
#include "../builtins.h"
#include "tmpbuiltins.h"
+#if defined (USING_BASH_MALLOC)
+#undef xmalloc
+#undef xrealloc
+#undef xfree
+
+#undef free /* defined in xmalloc.h */
+#endif
+
#ifndef errno
extern int errno;
#endif
@@ -90,7 +98,7 @@ char *helpfile_directory;
/* Forward declarations. */
-int write_helpfiles ();
+int write_helpfiles __P((struct builtin *));
/* For each file mentioned on the command line, process it and
write the information to STRUCTFILE and EXTERNFILE, while