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.

95 lines
2.4 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../incron/incron-0.5.9-gcc44.patch
  5. # Copyright (C) 2012 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. From 09eee740a4b962b4d8140b3256bddc62b6cd8cb5 Mon Sep 17 00:00:00 2001
  17. From: Christian Ruppert <idl0r@gentoo.org>
  18. Date: Mon, 31 Jan 2011 15:04:10 +0100
  19. Subject: [PATCH 1/2] GCC 4.4 fixes
  20. http://bts.aiken.cz/view.php?id=385
  21. http://bts.aiken.cz/view.php?id=447
  22. ---
  23. appargs.cpp | 1 +
  24. appinst.h | 1 +
  25. incroncfg.cpp | 2 +-
  26. incroncfg.h | 1 +
  27. inotify-cxx.h | 1 +
  28. 5 files changed, 5 insertions(+), 1 deletions(-)
  29. diff --git a/appargs.cpp b/appargs.cpp
  30. index 3bac9b7..ac238b2 100644
  31. --- a/appargs.cpp
  32. +++ b/appargs.cpp
  33. @@ -21,6 +21,7 @@
  34. #include <cstring>
  35. +#include <cstdio>
  36. #include "strtok.h"
  37. diff --git a/appinst.h b/appinst.h
  38. index d5f2cbe..bdbc8e7 100644
  39. --- a/appinst.h
  40. +++ b/appinst.h
  41. @@ -23,6 +23,7 @@
  42. #include <string>
  43. +#include <cstdio>
  44. #define APPLOCK_BASEDIR "/var/run"
  45. diff --git a/incroncfg.cpp b/incroncfg.cpp
  46. index 6ff4d76..54fcfc5 100644
  47. --- a/incroncfg.cpp
  48. +++ b/incroncfg.cpp
  49. @@ -181,7 +181,7 @@ bool IncronCfg::ParseLine(const char* s, std::string& rKey, std::string& rVal)
  50. bool IncronCfg::IsComment(const char* s)
  51. {
  52. - char* sx = strchr(s, '#');
  53. + const char* sx = strchr(s, '#');
  54. if (sx == NULL)
  55. return false;
  56. diff --git a/incroncfg.h b/incroncfg.h
  57. index 5d2c5b2..12aaf7d 100644
  58. --- a/incroncfg.h
  59. +++ b/incroncfg.h
  60. @@ -19,6 +19,7 @@
  61. #include <cstring>
  62. +#include <cstdio>
  63. #include <map>
  64. /// Configuration class.
  65. diff --git a/inotify-cxx.h b/inotify-cxx.h
  66. index bb3a0e6..1d98bd7 100644
  67. --- a/inotify-cxx.h
  68. +++ b/inotify-cxx.h
  69. @@ -30,6 +30,7 @@
  70. #include <string>
  71. #include <deque>
  72. #include <map>
  73. +#include <cstdio>
  74. // Please ensure that the following headers take the right place
  75. #include <sys/syscall.h>
  76. --
  77. 1.7.3.4