Imported from ../bash-2.02.tar.gz.
diff --git a/builtins/help.def b/builtins/help.def
index 9c47910..cd59d3c 100644
--- a/builtins/help.def
+++ b/builtins/help.def
@@ -36,11 +36,15 @@
 #include <stdio.h>
 
 #if defined (HAVE_UNISTD_H)
+#  ifdef _MINIX
+#    include <sys/types.h>
+#  endif
 #  include <unistd.h>
 #endif
 
 #include "../shell.h"
 #include "../builtins.h"
+#include "../pathexp.h"
 #include "bashgetopt.h"
 
 #include <glob/fnmatch.h>
@@ -100,7 +104,7 @@
 	{
 	  QUIT;
 	  if ((strncmp (pattern, name, plen) == 0) ||
-	      (fnmatch (pattern, name, 0) != FNM_NOMATCH))
+	      (fnmatch (pattern, name, FNMATCH_EXTFLAG) != FNM_NOMATCH))
 	    {
 	      printf ("%s: %s\n", name, shell_builtins[i].short_doc);