summaryrefslogtreecommitdiff
path: root/libc/misc/fnmatch/fnmatch.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/misc/fnmatch/fnmatch.c')
-rw-r--r--libc/misc/fnmatch/fnmatch.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/libc/misc/fnmatch/fnmatch.c b/libc/misc/fnmatch/fnmatch.c
index 11bb3a112..44f1431c8 100644
--- a/libc/misc/fnmatch/fnmatch.c
+++ b/libc/misc/fnmatch/fnmatch.c
@@ -49,16 +49,9 @@ Cambridge, MA 02139, USA. */
# define ISUPPER(c) (ISASCII (c) && isupper (c))
-# ifndef errno
-extern int errno;
-# endif
-
/* Match STRING against the filename pattern PATTERN, returning zero if
it matches, nonzero if not. */
-int fnmatch(pattern, string, flags)
-const char *pattern;
-const char *string;
-int flags;
+int attribute_hidden __fnmatch(const char *pattern, const char *string, int flags)
{
register const char *p = pattern, *n = string;
register char c;
@@ -228,5 +221,5 @@ int flags;
# undef FOLD
}
-
+strong_alias(__fnmatch,fnmatch)
#endif /* _LIBC or not __GNU_LIBRARY__. */