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.

77 lines
2.7 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../bincimap/x86-64-compile-fix.patch
  5. # Copyright (C) 2010 The OpenSDE Project
  6. # Copyright (C) 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. --- bincimap-1.3.4/src/imapserver.cc.orig 2006-01-04 22:40:26.000000000 +0100
  18. +++ bincimap-1.3.4/src/imapserver.cc 2006-01-04 22:41:42.000000000 +0100
  19. @@ -113,7 +113,7 @@
  20. BrokerFactory &brokerFactory = BrokerFactory::getInstance();
  21. Broker *broker = brokerFactory.getBroker(session.getState());
  22. - bincDebug << "IMAPServer::run(), found broker " << (int) broker
  23. + bincDebug << "IMAPServer::run(), found broker " << long(broker)
  24. << " for state " << session.getState() << endl;
  25. bool skipToNextRequest = false;
  26. --- bincimap-1.3.4/src/convert.h.orig 2006-01-04 22:42:12.000000000 +0100
  27. +++ bincimap-1.3.4/src/convert.h 2006-01-04 22:47:58.000000000 +0100
  28. @@ -59,6 +59,14 @@
  29. }
  30. //----------------------------------------------------------------------
  31. + inline std::string toString(long i_in)
  32. + {
  33. + char longbuf[40];
  34. + snprintf(longbuf, sizeof(longbuf), "%ld", i_in);
  35. + return std::string(longbuf);
  36. + }
  37. +
  38. + //----------------------------------------------------------------------
  39. inline std::string toString(unsigned long i_in)
  40. {
  41. char longbuf[40];
  42. @@ -293,6 +301,8 @@
  43. BincStream &operator << (const std::string &t);
  44. BincStream &operator << (unsigned int t);
  45. BincStream &operator << (int t);
  46. + BincStream &operator << (unsigned long t);
  47. + BincStream &operator << (long t);
  48. BincStream &operator << (char t);
  49. //--
  50. --- bincimap-1.3.4/src/convert.cc.orig 2006-01-04 22:44:24.000000000 +0100
  51. +++ bincimap-1.3.4/src/convert.cc 2006-01-04 22:48:34.000000000 +0100
  52. @@ -124,6 +124,20 @@
  53. }
  54. //------------------------------------------------------------------------
  55. +BincStream &BincStream::operator << (long t)
  56. +{
  57. + nstr += toString(t);
  58. + return *this;
  59. +}
  60. +
  61. +//------------------------------------------------------------------------
  62. +BincStream &BincStream::operator << (unsigned long t)
  63. +{
  64. + nstr += toString(t);
  65. + return *this;
  66. +}
  67. +
  68. +//------------------------------------------------------------------------
  69. BincStream &BincStream::operator << (char t)
  70. {
  71. nstr += t;