Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 93387
Collapse All | Expand All

(-)cabextract/fnmatch.c.orig (-5 / +4 lines)
Lines 45-51 Link Here
45
45
46
#include <errno.h>
46
#include <errno.h>
47
#include <fnmatch.h>
47
#include <fnmatch.h>
48
#include <safe-ctype.h>
49
48
50
/* Comment out all this code if we are using the GNU C Library, and are not
49
/* Comment out all this code if we are using the GNU C Library, and are not
51
   actually compiling the library itself.  This code is part of the GNU C
50
   actually compiling the library itself.  This code is part of the GNU C
Lines 55-61 Link Here
55
   program understand `configure --with-gnu-libc' and omit the object files,
54
   program understand `configure --with-gnu-libc' and omit the object files,
56
   it is simpler to just do this in the source for each such file.  */
55
   it is simpler to just do this in the source for each such file.  */
57
56
58
#if defined (_LIBC) || !defined (__GNU_LIBRARY__)
57
//#if defined (_LIBC) || !defined (__GNU_LIBRARY__)
59
58
60
59
61
#if !defined(__GNU_LIBRARY__) && !defined(STDC_HEADERS)
60
#if !defined(__GNU_LIBRARY__) && !defined(STDC_HEADERS)
Lines 65-71 Link Here
65
/* Match STRING against the filename pattern PATTERN, returning zero if
64
/* Match STRING against the filename pattern PATTERN, returning zero if
66
   it matches, nonzero if not.  */
65
   it matches, nonzero if not.  */
67
int
66
int
68
fnmatch (pattern, string, flags)
67
rpl_fnmatch (pattern, string, flags)
69
     const char *pattern;
68
     const char *pattern;
70
     const char *string;
69
     const char *string;
71
     int flags;
70
     int flags;
Lines 73-79 Link Here
73
  register const char *p = pattern, *n = string;
72
  register const char *p = pattern, *n = string;
74
  register unsigned char c;
73
  register unsigned char c;
75
74
76
#define FOLD(c)	((flags & FNM_CASEFOLD) ? TOLOWER (c) : (c))
75
#define FOLD(c)	((flags & FNM_CASEFOLD) ? tolower (c) : (c))
77
76
78
  while ((c = *p++) != '\0')
77
  while ((c = *p++) != '\0')
79
    {
78
    {
Lines 220-223 Link Here
220
  return FNM_NOMATCH;
219
  return FNM_NOMATCH;
221
}
220
}
222
221
223
#endif	/* _LIBC or not __GNU_LIBRARY__.  */
222
//#endif	/* _LIBC or not __GNU_LIBRARY__.  */

Return to bug 93387