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.

86 lines
3.4 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/esden/wvstreams/gcc34.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. Submitted By: Uwe D�ffert (lfs at uwe-dueffert dot de)
  20. Date: 2004-05-16
  21. Initial Package Version: 3.75.0
  22. Origin: self-created, http://www.uwe-dueffert.de/lfs/ownpatches/wvstreams-3.75.0-gcc34-1.patch
  23. Upstream Status: not reported
  24. Description: fix compilation with gcc34
  25. diff -Naur wvstreams-3.75.0.orig/include/uniconftree.h wvstreams-3.75.0/include/uniconftree.h
  26. --- wvstreams-3.75.0.orig/include/uniconftree.h 2004-05-16 14:22:42.665940696 +0000
  27. +++ wvstreams-3.75.0/include/uniconftree.h 2004-05-16 14:22:53.992218840 +0000
  28. @@ -48,7 +48,7 @@
  29. /** Returns a pointer to the parent node, or NULL if there is none. */
  30. Sub *parent() const
  31. - { return static_cast<Sub*>(xparent); }
  32. + { return static_cast<Sub*>(Base::xparent); }
  33. /** Reparents this node. */
  34. void setparent(Sub *parent)
  35. @@ -93,13 +93,13 @@
  36. /** Removes and deletes all children of this node. */
  37. void zap()
  38. {
  39. - if (!xchildren)
  40. + if (!Base::xchildren)
  41. return;
  42. // set xchildren to NULL first so that the zap() will happen faster
  43. // otherwise, each child will attempt to unlink itself uselessly
  44. - typename Base::Container *oldchildren = xchildren;
  45. - xchildren = NULL;
  46. + typename Base::Container *oldchildren = Base::xchildren;
  47. + Base::xchildren = NULL;
  48. // delete all children
  49. typename Base::Container::Iter i(*oldchildren);
  50. diff -Naur wvstreams-3.75.0.orig/include/wvsorter.h wvstreams-3.75.0/include/wvsorter.h
  51. --- wvstreams-3.75.0.orig/include/wvsorter.h 2004-05-16 14:22:42.587952552 +0000
  52. +++ wvstreams-3.75.0/include/wvsorter.h 2004-05-16 14:22:53.993218688 +0000
  53. @@ -90,7 +90,7 @@
  54. for (i.rewind(); i.next(); )
  55. n++;
  56. - array = new (void *) [n+2];
  57. + array = new void*[n+2];
  58. void **aptr = array;
  59. *aptr++ = NULL; // initial link is NULL, to act like a normal iterator
  60. diff -Naur wvstreams-3.75.0.orig/utils/wvbuffer.cc wvstreams-3.75.0/utils/wvbuffer.cc
  61. --- wvstreams-3.75.0.orig/utils/wvbuffer.cc 2004-05-16 14:22:42.433975960 +0000
  62. +++ wvstreams-3.75.0/utils/wvbuffer.cc 2004-05-16 14:22:53.993218688 +0000
  63. @@ -9,6 +9,7 @@
  64. /***** Specialization for raw memory buffers *****/
  65. // Instantiate some commonly used templates
  66. +/*
  67. template WvBufBaseCommonImpl<unsigned char>;
  68. template WvInPlaceBufBase<unsigned char>;
  69. template WvConstInPlaceBufBase<unsigned char>;
  70. @@ -16,6 +17,7 @@
  71. template WvDynBufBase<unsigned char>;
  72. template WvNullBufBase<unsigned char>;
  73. template WvBufCursorBase<unsigned char>;
  74. +*/
  75. void WvBufBase<unsigned char>::putstr(WvStringParm str)
  76. {