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.

75 lines
2.6 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../fam/fam-2.7.0-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. Fix to build with gcc >= 4.3
  17. diff -ruN fam-2.7.0-dnotify-gcc41/include/BTree.h fam-2.7.0-dnotify-gcc43/include/BTree.h
  18. --- fam-2.7.0-dnotify-gcc41/include/BTree.h 2003-01-20 05:22:30.000000000 +0100
  19. +++ fam-2.7.0-dnotify-gcc43/include/BTree.h 2010-08-29 14:06:22.000000000 +0200
  20. @@ -24,6 +24,7 @@
  21. #define BTree_included
  22. #include "Boolean.h"
  23. +#include <cstdlib>
  24. // This is an in-core B-Tree implementation.
  25. //
  26. diff -ruN fam-2.7.0-dnotify-gcc41/lib/Client.c++ fam-2.7.0-dnotify-gcc43/lib/Client.c++
  27. --- fam-2.7.0-dnotify-gcc41/lib/Client.c++ 2003-01-18 15:18:12.000000000 +0100
  28. +++ fam-2.7.0-dnotify-gcc43/lib/Client.c++ 2010-08-29 14:06:22.000000000 +0200
  29. @@ -34,7 +34,7 @@
  30. #include <syslog.h>
  31. #include <errno.h>
  32. -#include <iostream.h>
  33. +#include <iostream>
  34. #include "fam.h"
  35. #include "Client.h"
  36. diff -ruN fam-2.7.0-dnotify-gcc41/src/DNotify.c++ fam-2.7.0-dnotify-gcc43/src/DNotify.c++
  37. --- fam-2.7.0-dnotify-gcc41/src/DNotify.c++ 2010-08-29 13:09:03.000000000 +0200
  38. +++ fam-2.7.0-dnotify-gcc43/src/DNotify.c++ 2010-08-29 14:06:22.000000000 +0200
  39. @@ -31,6 +31,7 @@
  40. #include <sys/types.h>
  41. #include <sys/stat.h>
  42. #include <libgen.h>
  43. +#include <cstdlib>
  44. #include "DNotify.h"
  45. diff -ruN fam-2.7.0-dnotify-gcc41/src/IMon.c++ fam-2.7.0-dnotify-gcc43/src/IMon.c++
  46. --- fam-2.7.0-dnotify-gcc41/src/IMon.c++ 2003-01-18 15:18:12.000000000 +0100
  47. +++ fam-2.7.0-dnotify-gcc43/src/IMon.c++ 2010-08-29 14:06:22.000000000 +0200
  48. @@ -40,7 +40,7 @@
  49. #include "Interest.h"
  50. #include "Log.h"
  51. #include "Scheduler.h"
  52. -#include "alloc.h"
  53. +#include <memory>
  54. int IMon::imonfd = -2;
  55. IMon::EventHandler IMon::ehandler = NULL;
  56. diff -ruN fam-2.7.0-dnotify-gcc41/src/Interest.h fam-2.7.0-dnotify-gcc43/src/Interest.h
  57. --- fam-2.7.0-dnotify-gcc41/src/Interest.h 2010-08-29 13:09:03.000000000 +0200
  58. +++ fam-2.7.0-dnotify-gcc43/src/Interest.h 2010-08-29 14:06:22.000000000 +0200
  59. @@ -29,6 +29,7 @@
  60. #include <netinet/in.h> // for in_addr
  61. #include "Boolean.h"
  62. +#include <cstdlib>
  63. class Event;
  64. class FileSystem;