summaryrefslogtreecommitdiff
path: root/libc/misc/glob
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-10-12 04:19:38 +0000
committerEric Andersen <andersen@codepoet.org>2003-10-12 04:19:38 +0000
commit6bfc63117c7e35b1d72c0bbbd94f53710ce000c6 (patch)
tree3606e20042ad280bbeb96970624000866bebd974 /libc/misc/glob
parent6c9412876d741ae74d0d4fd775757a1a6cda52e1 (diff)
Sigh. It seems that csh wants glob_pattern_p(), we need to
export it,
Diffstat (limited to 'libc/misc/glob')
-rw-r--r--libc/misc/glob/glob.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/libc/misc/glob/glob.c b/libc/misc/glob/glob.c
index 8078dee38..0773c10b3 100644
--- a/libc/misc/glob/glob.c
+++ b/libc/misc/glob/glob.c
@@ -15,6 +15,7 @@ License along with this library; see the file COPYING.LIB. If
not, write to the Free Software Foundation, Inc., 675 Mass Ave,
Cambridge, MA 02139, USA. */
+#include <features.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
@@ -27,11 +28,11 @@ Cambridge, MA 02139, USA. */
#include <glob.h>
extern __ptr_t (*__glob_opendir_hook) __P ((const char *directory));
+extern int glob_pattern_p __P ((__const char *__pattern, int __quote));
extern void (*__glob_closedir_hook) __P ((__ptr_t stream));
extern const char *(*__glob_readdir_hook) __P ((__ptr_t stream));
-static int glob_pattern_p __P ((const char *pattern, int quote));
static int glob_in_dir __P ((const char *pattern, const char *directory,
int flags,
int (*errfunc) __P ((const char *, int)),
@@ -333,10 +334,7 @@ prefix_array (dirname, array, n, add_slash)
/* Return nonzero if PATTERN contains any metacharacters.
Metacharacters can be quoted with backslashes if QUOTE is nonzero. */
-static int
-glob_pattern_p (pattern, quote)
- const char *pattern;
- int quote;
+int glob_pattern_p(const char *pattern, int quote)
{
register const char *p;
int open = 0;