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.

55 lines
2.2 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../dansguardian/gcc44.patch
  5. # Copyright (C) 2010 The OpenSDE 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. # --- SDE-COPYRIGHT-NOTE-END ---
  16. http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-proxy/dansguardian/files/dansguardian-2.10.1.1-gcc44.patch?view=markup
  17. diff -Nru dansguardian-2.10.1.1.orig/src/ConnectionHandler.cpp dansguardian-2.10.1.1/src/ConnectionHandler.cpp
  18. --- dansguardian-2.10.1.1.orig/src/ConnectionHandler.cpp 2009-02-25 12:36:22.000000000 +0100
  19. +++ dansguardian-2.10.1.1/src/ConnectionHandler.cpp 2009-07-05 01:15:52.000000000 +0200
  20. @@ -44,6 +44,7 @@
  21. #include <istream>
  22. #ifdef ENABLE_ORIG_IP
  23. +#include <limits.h>
  24. #include <linux/types.h>
  25. #include <linux/netfilter_ipv4.h>
  26. #endif
  27. diff -Nru dansguardian-2.10.1.1.orig/src/downloadmanagers/fancy.cpp dansguardian-2.10.1.1/src/downloadmanagers/fancy.cpp
  28. --- dansguardian-2.10.1.1.orig/src/downloadmanagers/fancy.cpp 2008-11-18 12:27:04.000000000 +0100
  29. +++ dansguardian-2.10.1.1/src/downloadmanagers/fancy.cpp 2009-07-05 01:15:12.000000000 +0200
  30. @@ -26,6 +26,7 @@
  31. #include "../HTMLTemplate.hpp"
  32. #include "../ConnectionHandler.hpp"
  33. +#include <stdio.h>
  34. #include <syslog.h>
  35. #include <sys/time.h>
  36. #include <sys/types.h>
  37. diff -Nru dansguardian-2.10.1.1.orig/src/String.cpp dansguardian-2.10.1.1/src/String.cpp
  38. --- dansguardian-2.10.1.1.orig/src/String.cpp 2009-01-16 11:44:28.000000000 +0100
  39. +++ dansguardian-2.10.1.1/src/String.cpp 2009-07-05 01:15:12.000000000 +0200
  40. @@ -164,9 +164,9 @@
  41. return 0;
  42. off_t t = 0;
  43. if (sizeof(off_t) == 4)
  44. - sscanf(this->c_str(), "%d", &t);
  45. + sscanf(this->c_str(), "%d", (long *)&t);
  46. else if (sizeof(off_t) == 8)
  47. - sscanf(this->c_str(), "%lld", &t);
  48. + sscanf(this->c_str(), "%lld", (long long*)&t);
  49. return t;
  50. }