From afdecae49f81065952da43bb2629fcdb64aad535 Mon Sep 17 00:00:00 2001
From: "Peter S. Mazinger" <ps.m@gmx.net>
Date: Thu, 8 Dec 2005 15:04:23 +0000
Subject: Use internal versions

---
 libc/misc/fnmatch/fnmatch.c | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

(limited to 'libc/misc/fnmatch')

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__.  */
-- 
cgit v1.2.3