]> sjero.net Git - wget/commitdiff
[svn] Use the system-provided fnmatch by default.
authorhniksic <devnull@localhost>
Mon, 27 Jun 2005 13:27:13 +0000 (06:27 -0700)
committerhniksic <devnull@localhost>
Mon, 27 Jun 2005 13:27:13 +0000 (06:27 -0700)
src/ChangeLog
src/cmpt.c
src/sysdep.h

index 0f3e7db7d810d430f2cda76037272a182e5e12f8..8ba8e9c024b9d023e4217282d8e780b03770a11f 100644 (file)
@@ -1,3 +1,7 @@
+2005-06-27  Hrvoje Niksic  <hniksic@xemacs.org>
+
+       * sysdep.h: Use the system-provided fnmatch by default.
+
 2005-06-27  Hrvoje Niksic  <hniksic@xemacs.org>
 
        * http.c (mktime_from_utc): Renamed to timegm and moved to cmpt.c.
index 19b56265ff7b9f283206f94575fea44d0966769a..9589da868750a3ec400a9fae4d872cb12ad3d901 100644 (file)
@@ -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
 
index 44eeacde5fc06d244c81d7254fe770a3245b0621..5597fe4e7a1ab0460c5162b772cdb7d4e8521883 100644 (file)
@@ -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 <fnmatch.h>