blackbox-0.70.1-include-fix.diff 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. --- blackbox-0.70.1/lib/Image.cc.orig 2008-10-03 09:23:56.000000000 +0200
  2. +++ blackbox-0.70.1/lib/Image.cc 2008-10-03 09:24:08.000000000 +0200
  3. @@ -44,6 +44,7 @@
  4. #include <math.h>
  5. #include <stdio.h>
  6. #include <stdlib.h>
  7. +#include <string.h>
  8. // #define COLORTABLE_DEBUG
  9. // #define MITSHM_DEBUG
  10. --- blackbox-0.70.1.orig/lib/Resource.cc 2008-10-07 18:32:55.000000000 +0200
  11. +++ blackbox-0.70.1/lib/Resource.cc 2008-10-07 18:34:05.000000000 +0200
  12. @@ -29,6 +29,7 @@
  13. #include <X11/Xresource.h>
  14. #include <stdio.h>
  15. +#include <strings.h>
  16. bt::Resource::Resource(void)
  17. --- blackbox-0.70.1.orig/lib/XDG.cc 2008-10-07 18:32:55.000000000 +0200
  18. +++ blackbox-0.70.1/lib/XDG.cc 2008-10-07 18:47:25.000000000 +0200
  19. @@ -26,7 +26,7 @@
  20. #include "XDG.hh"
  21. #include <stdlib.h>
  22. -
  23. +#include <algorithm>
  24. // make sure directory names end with a slash
  25. static std::string terminateDir(const std::string &string)
  26. --- blackbox-0.70.1.orig/src/BlackboxResource.cc 2008-10-07 18:32:55.000000000 +0200
  27. +++ blackbox-0.70.1/src/BlackboxResource.cc 2008-10-07 18:48:13.000000000 +0200
  28. @@ -33,6 +33,7 @@
  29. #include <X11/Xutil.h>
  30. #include <X11/cursorfont.h>
  31. +#include <strings.h>
  32. BlackboxResource::BlackboxResource(const std::string& rc): rc_file(rc) {
  33. screen_resources = 0;
  34. --- blackbox-0.70.1.orig/src/ScreenResource.cc 2008-10-07 18:32:55.000000000 +0200
  35. +++ blackbox-0.70.1/src/ScreenResource.cc 2008-10-07 18:49:10.000000000 +0200
  36. @@ -32,7 +32,7 @@
  37. #include <Resource.hh>
  38. #include <assert.h>
  39. -
  40. +#include <strings.h>
  41. static const int iconify_width = 9;
  42. static const int iconify_height = 9;
  43. --- blackbox-0.70.1.orig/src/Screen.cc 2008-10-07 18:32:55.000000000 +0200
  44. +++ blackbox-0.70.1/src/Screen.cc 2008-10-07 18:50:01.000000000 +0200
  45. @@ -47,7 +47,7 @@
  46. #include <assert.h>
  47. #include <ctype.h>
  48. #include <dirent.h>
  49. -
  50. +#include <string.h>
  51. static bool running = true;
  52. static int anotherWMRunning(Display *, XErrorEvent *) {
  53. --- blackbox-0.70.1.orig/src/main.cc 2008-10-07 18:32:55.000000000 +0200
  54. +++ blackbox-0.70.1/src/main.cc 2008-10-07 18:50:48.000000000 +0200
  55. @@ -35,7 +35,7 @@
  56. #include "../version.h"
  57. #include <stdio.h>
  58. -
  59. +#include <string.h>
  60. static void showHelp(int exitval) {
  61. // print version - this should not be localized!
  62. --- blackbox-0.70.1.orig/util/bsetroot.cc 2008-10-07 18:32:55.000000000 +0200
  63. +++ blackbox-0.70.1/util/bsetroot.cc 2008-10-07 18:52:33.000000000 +0200
  64. @@ -31,7 +31,8 @@
  65. #include <X11/Xatom.h>
  66. #include <stdio.h>
  67. -
  68. +#include <string.h>
  69. +#include <stdlib.h>
  70. // ignore all X errors
  71. static int x11_error(::Display *, XErrorEvent *)
  72. --- blackbox-0.70.1.orig/lib/Util.hh
  73. +++ blackbox-0.70.1/lib/Util.hh
  74. @@ -25,6 +25,8 @@
  75. #ifndef __Util_hh
  76. #define __Util_hh
  77. +#include <X11/Xutil.h>
  78. +
  79. #include <limits.h>
  80. #include <string>
  81. @@ -94,10 +96,8 @@
  82. std::string tolower(const std::string &string);
  83. -#ifdef _XUTIL_H_
  84. std::string textPropertyToString(::Display *display,
  85. ::XTextProperty& text_prop);
  86. -#endif
  87. } // namespace bt