diff --git a/pkgs/development/libraries/log4cxx/default.nix b/pkgs/development/libraries/log4cxx/default.nix index 0e6c24bf61e..67d917f699d 100644 --- a/pkgs/development/libraries/log4cxx/default.nix +++ b/pkgs/development/libraries/log4cxx/default.nix @@ -9,7 +9,18 @@ stdenv.mkDerivation { url = http://apache.mirrors.hoobly.com/logging/log4cxx/0.10.0/apache-log4cxx-0.10.0.tar.gz; sha256 = "130cjafck1jlqv92mxbn47yhxd2ccwwnprk605c6lmm941i3kq0d"; }; - + + postPatch = '' + sed -i -e '1,/^#include/ { + /^#include/i \ + #include \ + #include \ + #include + }' src/examples/cpp/console.cpp \ + src/main/cpp/inputstreamreader.cpp \ + src/main/cpp/socketoutputstream.cpp + ''; + buildInputs = [autoconf automake libtool libxml2 cppunit boost apr aprutil db45 expat]; meta = {