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.

67 lines
2.5 KiB

  1. Submitted By: Uwe D�ffert (lfs at uwe-dueffert dot de)
  2. Date: 2004-05-16
  3. Initial Package Version: 3.75.0
  4. Origin: self-created, http://www.uwe-dueffert.de/lfs/ownpatches/wvstreams-3.75.0-gcc34-1.patch
  5. Upstream Status: not reported
  6. Description: fix compilation with gcc34
  7. diff -Naur wvstreams-3.75.0.orig/include/uniconftree.h wvstreams-3.75.0/include/uniconftree.h
  8. --- wvstreams-3.75.0.orig/include/uniconftree.h 2004-05-16 14:22:42.665940696 +0000
  9. +++ wvstreams-3.75.0/include/uniconftree.h 2004-05-16 14:22:53.992218840 +0000
  10. @@ -48,7 +48,7 @@
  11. /** Returns a pointer to the parent node, or NULL if there is none. */
  12. Sub *parent() const
  13. - { return static_cast<Sub*>(xparent); }
  14. + { return static_cast<Sub*>(Base::xparent); }
  15. /** Reparents this node. */
  16. void setparent(Sub *parent)
  17. @@ -93,13 +93,13 @@
  18. /** Removes and deletes all children of this node. */
  19. void zap()
  20. {
  21. - if (!xchildren)
  22. + if (!Base::xchildren)
  23. return;
  24. // set xchildren to NULL first so that the zap() will happen faster
  25. // otherwise, each child will attempt to unlink itself uselessly
  26. - typename Base::Container *oldchildren = xchildren;
  27. - xchildren = NULL;
  28. + typename Base::Container *oldchildren = Base::xchildren;
  29. + Base::xchildren = NULL;
  30. // delete all children
  31. typename Base::Container::Iter i(*oldchildren);
  32. diff -Naur wvstreams-3.75.0.orig/include/wvsorter.h wvstreams-3.75.0/include/wvsorter.h
  33. --- wvstreams-3.75.0.orig/include/wvsorter.h 2004-05-16 14:22:42.587952552 +0000
  34. +++ wvstreams-3.75.0/include/wvsorter.h 2004-05-16 14:22:53.993218688 +0000
  35. @@ -90,7 +90,7 @@
  36. for (i.rewind(); i.next(); )
  37. n++;
  38. - array = new (void *) [n+2];
  39. + array = new void*[n+2];
  40. void **aptr = array;
  41. *aptr++ = NULL; // initial link is NULL, to act like a normal iterator
  42. diff -Naur wvstreams-3.75.0.orig/utils/wvbuffer.cc wvstreams-3.75.0/utils/wvbuffer.cc
  43. --- wvstreams-3.75.0.orig/utils/wvbuffer.cc 2004-05-16 14:22:42.433975960 +0000
  44. +++ wvstreams-3.75.0/utils/wvbuffer.cc 2004-05-16 14:22:53.993218688 +0000
  45. @@ -9,6 +9,7 @@
  46. /***** Specialization for raw memory buffers *****/
  47. // Instantiate some commonly used templates
  48. +/*
  49. template WvBufBaseCommonImpl<unsigned char>;
  50. template WvInPlaceBufBase<unsigned char>;
  51. template WvConstInPlaceBufBase<unsigned char>;
  52. @@ -16,6 +17,7 @@
  53. template WvDynBufBase<unsigned char>;
  54. template WvNullBufBase<unsigned char>;
  55. template WvBufCursorBase<unsigned char>;
  56. +*/
  57. void WvBufBase<unsigned char>::putstr(WvStringParm str)
  58. {