log4cxx-0.10.0-missing_includes.patch 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. diff -Naur apache-log4cxx-0.10.0.orig/src/examples/cpp/console.cpp apache-log4cxx-0.10.0/src/examples/cpp/console.cpp
  2. --- apache-log4cxx-0.10.0.orig/src/examples/cpp/console.cpp 2008-04-01 00:34:52.000000000 +0200
  3. +++ apache-log4cxx-0.10.0/src/examples/cpp/console.cpp 2008-05-06 05:40:52.000000000 +0200
  4. @@ -15,7 +15,10 @@
  5. * limitations under the License.
  6. */
  7. -#include <stdlib.h>
  8. +#include <cstdio>
  9. +#include <cstdlib>
  10. +#include <cstring>
  11. +#include <stdint.h>
  12. #include <log4cxx/logger.h>
  13. #include <log4cxx/consoleappender.h>
  14. #include <log4cxx/simplelayout.h>
  15. diff -Naur apache-log4cxx-0.10.0.orig/src/main/cpp/inputstreamreader.cpp apache-log4cxx-0.10.0/src/main/cpp/inputstreamreader.cpp
  16. --- apache-log4cxx-0.10.0.orig/src/main/cpp/inputstreamreader.cpp 2008-04-01 00:34:09.000000000 +0200
  17. +++ apache-log4cxx-0.10.0/src/main/cpp/inputstreamreader.cpp 2008-05-06 05:32:31.000000000 +0200
  18. @@ -21,6 +21,8 @@
  19. #include <log4cxx/helpers/pool.h>
  20. #include <log4cxx/helpers/bytebuffer.h>
  21. +#include <cstring>
  22. +
  23. using namespace log4cxx;
  24. using namespace log4cxx::helpers;
  25. diff -Naur apache-log4cxx-0.10.0.orig/src/main/cpp/socketoutputstream.cpp apache-log4cxx-0.10.0/src/main/cpp/socketoutputstream.cpp
  26. --- apache-log4cxx-0.10.0.orig/src/main/cpp/socketoutputstream.cpp 2008-04-01 00:34:09.000000000 +0200
  27. +++ apache-log4cxx-0.10.0/src/main/cpp/socketoutputstream.cpp 2008-05-06 05:35:55.000000000 +0200
  28. @@ -20,6 +20,8 @@
  29. #include <log4cxx/helpers/socket.h>
  30. #include <log4cxx/helpers/bytebuffer.h>
  31. +#include <cstring>
  32. +
  33. using namespace log4cxx;
  34. using namespace log4cxx::helpers;