From: hniksic Date: Mon, 27 Jun 2005 13:27:13 +0000 (-0700) Subject: [svn] Use the system-provided fnmatch by default. X-Git-Tag: v1.13~876 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=b227a44f1a5935ad134e224e85c336b89d94f312 [svn] Use the system-provided fnmatch by default. --- diff --git a/src/ChangeLog b/src/ChangeLog index 0f3e7db7..8ba8e9c0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2005-06-27 Hrvoje Niksic + + * sysdep.h: Use the system-provided fnmatch by default. + 2005-06-27 Hrvoje Niksic * http.c (mktime_from_utc): Renamed to timegm and moved to cmpt.c. diff --git a/src/cmpt.c b/src/cmpt.c index 19b56265..9589da86 100644 --- a/src/cmpt.c +++ b/src/cmpt.c @@ -1046,11 +1046,9 @@ const unsigned short int __mon_yday[2][13] = and given a prefix, but many systems out there are still (as of this writing in 2005) broken and we must cater to them. - Additionally, according to anecdotal evidence and conventional - wisdom I lack courage to challenge, many implementations of fnmatch - are notoriously buggy and unreliable. So we use our version by - default, except when compiling under systems where fnmatch is known - to work (currently on GNU libc-based systems and Solaris.) */ + Additionally, according to some conventional, many historical + implementations of fnmatch are buggy and unreliable. If yours is + such, undefine SYSTEM_FNMATCH in sysdep.h and tell us about it. */ #ifndef SYSTEM_FNMATCH diff --git a/src/sysdep.h b/src/sysdep.h index 44eeacde..5597fe4e 100644 --- a/src/sysdep.h +++ b/src/sysdep.h @@ -155,19 +155,12 @@ int vsnprintf (); # define MAP_FAILED ((void *) -1) #endif -/* Enable system fnmatch only on systems where fnmatch.h is usable and - which are known to have a non-broken fnmatch implementation. - Currently those include glibc-based systems and Solaris. One could - add more, but fnmatch is not that large, so it might be better to - play it safe. */ +/* Enable system fnmatch only on systems where fnmatch.h is usable. + If the fnmatch on your system is buggy, undef this symbol and a + replacement implementation will be used instead. */ #ifdef HAVE_WORKING_FNMATCH_H -# if defined __GLIBC__ && __GLIBC__ >= 2 -# define SYSTEM_FNMATCH -# endif -# ifdef solaris -# define SYSTEM_FNMATCH -# endif -#endif /* HAVE_WORKING_FNMATCH_H */ +# define SYSTEM_FNMATCH +#endif #ifdef SYSTEM_FNMATCH # include