summaryrefslogtreecommitdiffstats
path: root/extra/a2ps/a2ps-4.13c-fnmatch-replacement.patch
diff options
context:
space:
mode:
authorThierry N <thierryn1 at hispeed dot ch>2009-08-21 18:39:20 +0200
committerThierry N <thierryn1 at hispeed dot ch>2009-08-21 18:39:20 +0200
commit6d6caa92e7418c7bbcbee40d421863f5e850a0f6 (patch)
treeb015b5897db7ab7e51607089580cc1d3069bb2f4 /extra/a2ps/a2ps-4.13c-fnmatch-replacement.patch
parent1f7c3db43f053c1617275d22770b13e6a935b077 (diff)
downloadnutyx-extra-6d6caa92e7418c7bbcbee40d421863f5e850a0f6.tar.gz
nutyx-extra-6d6caa92e7418c7bbcbee40d421863f5e850a0f6.tar.bz2
nutyx-extra-6d6caa92e7418c7bbcbee40d421863f5e850a0f6.tar.xz
nutyx-extra-6d6caa92e7418c7bbcbee40d421863f5e850a0f6.zip
maj a2ps#4.14-1
Diffstat (limited to 'extra/a2ps/a2ps-4.13c-fnmatch-replacement.patch')
-rw-r--r--extra/a2ps/a2ps-4.13c-fnmatch-replacement.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/extra/a2ps/a2ps-4.13c-fnmatch-replacement.patch b/extra/a2ps/a2ps-4.13c-fnmatch-replacement.patch
new file mode 100644
index 000000000..c49ab78c9
--- /dev/null
+++ b/extra/a2ps/a2ps-4.13c-fnmatch-replacement.patch
@@ -0,0 +1,43 @@
+diff -Naurp a2ps-4.13.orig/lib/fnmatch.c a2ps-4.13/lib/fnmatch.c
+--- a2ps-4.13.orig/lib/fnmatch.c 2002-03-04 12:46:25 -0600
++++ a2ps-4.13/lib/fnmatch.c 2006-05-27 11:41:15 -0500
+@@ -27,18 +27,6 @@
+ #include <fnmatch.h>
+ #include <ctype.h>
+
+-
+-/* Comment out all this code if we are using the GNU C Library, and are not
+- actually compiling the library itself. This code is part of the GNU C
+- Library, but also included in many other GNU distributions. Compiling
+- and linking in this code is a waste when using the GNU C library
+- (especially if it is a shared library). Rather than having every GNU
+- program understand `configure --with-gnu-libc' and omit the object files,
+- it is simpler to just do this in the source for each such file. */
+-
+-#if defined _LIBC || !defined __GNU_LIBRARY__
+-
+-
+ # if defined STDC_HEADERS || !defined isascii
+ # define ISASCII(c) 1
+ # else
+@@ -52,10 +40,13 @@
+ extern int errno;
+ # endif
+
++/* fnmatch replacement taken from the GNU C Library for systems that
++ provide a broken implementation. */
++
+ /* Match STRING against the filename pattern PATTERN, returning zero if
+ it matches, nonzero if not. */
+ int
+-fnmatch (const char *pattern, const char *string, int flags)
++rpl_fnmatch (const char *pattern, const char *string, int flags)
+ {
+ register const char *p = pattern, *n = string;
+ register char c;
+@@ -233,5 +224,3 @@ fnmatch (const char *pattern, const char
+
+ # undef FOLD
+ }
+-
+-#endif /* _LIBC or not __GNU_LIBRARY__. */