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.

111 lines
3.7 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../blackbox/gcc43.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. diff -ruN blackbox-0.70.1-orig/lib/Image.cc blackbox-0.70.1/lib/Image.cc
  17. --- blackbox-0.70.1-orig/lib/Image.cc 2005-04-08 17:41:09.000000000 +0200
  18. +++ blackbox-0.70.1/lib/Image.cc 2010-08-13 19:34:25.404254758 +0200
  19. @@ -27,6 +27,8 @@
  20. #include "Pen.hh"
  21. #include "Texture.hh"
  22. +#include <string.h>
  23. +
  24. #include <algorithm>
  25. #include <vector>
  26. diff -ruN blackbox-0.70.1-orig/lib/Resource.cc blackbox-0.70.1/lib/Resource.cc
  27. --- blackbox-0.70.1-orig/lib/Resource.cc 2005-04-06 23:16:50.000000000 +0200
  28. +++ blackbox-0.70.1/lib/Resource.cc 2010-08-13 19:34:25.408254575 +0200
  29. @@ -29,6 +29,7 @@
  30. #include <X11/Xresource.h>
  31. #include <stdio.h>
  32. +#include <string.h>
  33. bt::Resource::Resource(void)
  34. diff -ruN blackbox-0.70.1-orig/lib/XDG.cc blackbox-0.70.1/lib/XDG.cc
  35. --- blackbox-0.70.1-orig/lib/XDG.cc 2005-04-06 16:04:38.000000000 +0200
  36. +++ blackbox-0.70.1/lib/XDG.cc 2010-08-13 19:34:25.408254575 +0200
  37. @@ -27,6 +27,8 @@
  38. #include <stdlib.h>
  39. +#include <algorithm>
  40. +
  41. // make sure directory names end with a slash
  42. static std::string terminateDir(const std::string &string)
  43. diff -ruN blackbox-0.70.1-orig/src/BlackboxResource.cc blackbox-0.70.1/src/BlackboxResource.cc
  44. --- blackbox-0.70.1-orig/src/BlackboxResource.cc 2005-10-18 09:34:46.000000000 +0200
  45. +++ blackbox-0.70.1/src/BlackboxResource.cc 2010-08-13 19:34:25.408254575 +0200
  46. @@ -33,6 +33,7 @@
  47. #include <X11/Xutil.h>
  48. #include <X11/cursorfont.h>
  49. +#include <string.h>
  50. BlackboxResource::BlackboxResource(const std::string& rc): rc_file(rc) {
  51. screen_resources = 0;
  52. diff -ruN blackbox-0.70.1-orig/src/Screen.cc blackbox-0.70.1/src/Screen.cc
  53. --- blackbox-0.70.1-orig/src/Screen.cc 2005-10-18 10:07:22.000000000 +0200
  54. +++ blackbox-0.70.1/src/Screen.cc 2010-08-13 19:34:25.404254758 +0200
  55. @@ -48,6 +48,8 @@
  56. #include <ctype.h>
  57. #include <dirent.h>
  58. +#include <string.h>
  59. +
  60. static bool running = true;
  61. static int anotherWMRunning(Display *, XErrorEvent *) {
  62. diff -ruN blackbox-0.70.1-orig/src/ScreenResource.cc blackbox-0.70.1/src/ScreenResource.cc
  63. --- blackbox-0.70.1-orig/src/ScreenResource.cc 2005-04-13 07:54:08.000000000 +0200
  64. +++ blackbox-0.70.1/src/ScreenResource.cc 2010-08-13 19:34:25.408254575 +0200
  65. @@ -32,7 +32,7 @@
  66. #include <Resource.hh>
  67. #include <assert.h>
  68. -
  69. +#include <string.h>
  70. static const int iconify_width = 9;
  71. static const int iconify_height = 9;
  72. diff -ruN blackbox-0.70.1-orig/src/main.cc blackbox-0.70.1/src/main.cc
  73. --- blackbox-0.70.1-orig/src/main.cc 2005-01-03 10:42:57.000000000 +0100
  74. +++ blackbox-0.70.1/src/main.cc 2010-08-13 19:34:25.408254575 +0200
  75. @@ -35,6 +35,7 @@
  76. #include "../version.h"
  77. #include <stdio.h>
  78. +#include <string.h>
  79. static void showHelp(int exitval) {
  80. diff -ruN blackbox-0.70.1-orig/util/bsetroot.cc blackbox-0.70.1/util/bsetroot.cc
  81. --- blackbox-0.70.1-orig/util/bsetroot.cc 2005-03-15 08:01:37.000000000 +0100
  82. +++ blackbox-0.70.1/util/bsetroot.cc 2010-08-13 19:34:25.408254575 +0200
  83. @@ -30,7 +30,10 @@
  84. #include <cctype>
  85. #include <X11/Xatom.h>
  86. +
  87. +#include <stdlib.h>
  88. #include <stdio.h>
  89. +#include <string.h>
  90. // ignore all X errors