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.

76 lines
2.7 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../bincimap/x86-64-compile-fix.patch
  5. # Copyright (C) 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- T2-COPYRIGHT-NOTE-END ---
  16. --- bincimap-1.3.4/src/imapserver.cc.orig 2006-01-04 22:40:26.000000000 +0100
  17. +++ bincimap-1.3.4/src/imapserver.cc 2006-01-04 22:41:42.000000000 +0100
  18. @@ -113,7 +113,7 @@
  19. BrokerFactory &brokerFactory = BrokerFactory::getInstance();
  20. Broker *broker = brokerFactory.getBroker(session.getState());
  21. - bincDebug << "IMAPServer::run(), found broker " << (int) broker
  22. + bincDebug << "IMAPServer::run(), found broker " << long(broker)
  23. << " for state " << session.getState() << endl;
  24. bool skipToNextRequest = false;
  25. --- bincimap-1.3.4/src/convert.h.orig 2006-01-04 22:42:12.000000000 +0100
  26. +++ bincimap-1.3.4/src/convert.h 2006-01-04 22:47:58.000000000 +0100
  27. @@ -59,6 +59,14 @@
  28. }
  29. //----------------------------------------------------------------------
  30. + inline std::string toString(long i_in)
  31. + {
  32. + char longbuf[40];
  33. + snprintf(longbuf, sizeof(longbuf), "%ld", i_in);
  34. + return std::string(longbuf);
  35. + }
  36. +
  37. + //----------------------------------------------------------------------
  38. inline std::string toString(unsigned long i_in)
  39. {
  40. char longbuf[40];
  41. @@ -293,6 +301,8 @@
  42. BincStream &operator << (const std::string &t);
  43. BincStream &operator << (unsigned int t);
  44. BincStream &operator << (int t);
  45. + BincStream &operator << (unsigned long t);
  46. + BincStream &operator << (long t);
  47. BincStream &operator << (char t);
  48. //--
  49. --- bincimap-1.3.4/src/convert.cc.orig 2006-01-04 22:44:24.000000000 +0100
  50. +++ bincimap-1.3.4/src/convert.cc 2006-01-04 22:48:34.000000000 +0100
  51. @@ -124,6 +124,20 @@
  52. }
  53. //------------------------------------------------------------------------
  54. +BincStream &BincStream::operator << (long t)
  55. +{
  56. + nstr += toString(t);
  57. + return *this;
  58. +}
  59. +
  60. +//------------------------------------------------------------------------
  61. +BincStream &BincStream::operator << (unsigned long t)
  62. +{
  63. + nstr += toString(t);
  64. + return *this;
  65. +}
  66. +
  67. +//------------------------------------------------------------------------
  68. BincStream &BincStream::operator << (char t)
  69. {
  70. nstr += t;