mirror of the now-defunct rocklinux.org
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.

56 lines
2.1 KiB

  1. wchar.h must be included directly (and not via _G_config.h, which happens eg.
  2. when including stdio.h before wchar.h). strange - can't reproduce it in the
  3. chroot filesystem. ~~ Clifford
  4. diff -ru tar-1.19/lib/mbchar.c tar-1.19-x/lib/mbchar.c
  5. --- tar-1.19/lib/mbchar.c 2007-09-28 13:11:36.000000000 +0000
  6. +++ tar-1.19-x/lib/mbchar.c 2007-11-04 13:01:32.000000000 +0000
  7. @@ -14,6 +14,8 @@
  8. along with this program; if not, write to the Free Software Foundation,
  9. Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
  10. +// HACK! HACK!
  11. +#include <wchar.h>
  12. #include <config.h>
  13. diff -ru tar-1.19/lib/mbscasecmp.c tar-1.19-x/lib/mbscasecmp.c
  14. --- tar-1.19/lib/mbscasecmp.c 2007-09-28 13:11:36.000000000 +0000
  15. +++ tar-1.19-x/lib/mbscasecmp.c 2007-11-04 13:02:16.000000000 +0000
  16. @@ -17,6 +17,9 @@
  17. along with this program; if not, write to the Free Software Foundation,
  18. Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
  19. +// HACK! HACK!
  20. +#include <wchar.h>
  21. +
  22. #include <config.h>
  23. /* Specification. */
  24. diff -ru tar-1.19/lib/regex.c tar-1.19-x/lib/regex.c
  25. --- tar-1.19/lib/regex.c 2007-09-28 13:11:36.000000000 +0000
  26. +++ tar-1.19-x/lib/regex.c 2007-11-04 13:03:16.000000000 +0000
  27. @@ -17,6 +17,9 @@
  28. with this program; if not, write to the Free Software Foundation,
  29. Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
  30. +// HACK! HACK!
  31. +#include <wchar.h>
  32. +
  33. #include <config.h>
  34. /* Make sure noone compiles this code with a C++ compiler. */
  35. diff -ru tar-1.19/lib/vasnprintf.c tar-1.19-x/lib/vasnprintf.c
  36. --- tar-1.19/lib/vasnprintf.c 2007-09-28 13:11:37.000000000 +0000
  37. +++ tar-1.19-x/lib/vasnprintf.c 2007-11-04 13:03:49.000000000 +0000
  38. @@ -44,6 +44,9 @@
  39. DCHAR_IS_UINT16_T Set to 1 if DCHAR_T is uint16_t.
  40. DCHAR_IS_UINT32_T Set to 1 if DCHAR_T is uint32_t. */
  41. +// HACK! HACK!
  42. +#include <wchar.h>
  43. +
  44. /* Tell glibc's <stdio.h> to provide a prototype for snprintf().
  45. This must come before <config.h> because <config.h> may include
  46. <features.h>, and once <features.h> has been included, it's too late. */