OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
2.1 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../uclibc/pkg_patch/cabextract-uclibc.patch
  5. # Copyright (C) 2006 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This patch file is dual-licensed. It is available under the license the
  11. # patched project is licensed under, as long as it is an OpenSource license
  12. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  13. # of the GNU General Public License as published by the Free Software
  14. # Foundation; either version 2 of the License, or (at your option) any later
  15. # version.
  16. # --- SDE-COPYRIGHT-NOTE-END ---
  17. --- cabextract/fnmatch.c.orig 2005-01-22 06:16:14.000000000 +0000
  18. +++ cabextract/fnmatch.c 2005-01-22 06:20:56.000000000 +0000
  19. @@ -45,7 +45,6 @@
  20. #include <errno.h>
  21. #include <fnmatch.h>
  22. -#include <safe-ctype.h>
  23. /* Comment out all this code if we are using the GNU C Library, and are not
  24. actually compiling the library itself. This code is part of the GNU C
  25. @@ -55,7 +54,7 @@
  26. program understand `configure --with-gnu-libc' and omit the object files,
  27. it is simpler to just do this in the source for each such file. */
  28. -#if defined (_LIBC) || !defined (__GNU_LIBRARY__)
  29. +//#if defined (_LIBC) || !defined (__GNU_LIBRARY__)
  30. #if !defined(__GNU_LIBRARY__) && !defined(STDC_HEADERS)
  31. @@ -65,7 +64,7 @@
  32. /* Match STRING against the filename pattern PATTERN, returning zero if
  33. it matches, nonzero if not. */
  34. int
  35. -fnmatch (pattern, string, flags)
  36. +rpl_fnmatch (pattern, string, flags)
  37. const char *pattern;
  38. const char *string;
  39. int flags;
  40. @@ -73,7 +72,7 @@
  41. register const char *p = pattern, *n = string;
  42. register unsigned char c;
  43. -#define FOLD(c) ((flags & FNM_CASEFOLD) ? TOLOWER (c) : (c))
  44. +#define FOLD(c) ((flags & FNM_CASEFOLD) ? tolower (c) : (c))
  45. while ((c = *p++) != '\0')
  46. {
  47. @@ -220,4 +219,4 @@
  48. return FNM_NOMATCH;
  49. }
  50. -#endif /* _LIBC or not __GNU_LIBRARY__. */
  51. +//#endif /* _LIBC or not __GNU_LIBRARY__. */