From 81154d929a071ecd1944e267e6b532e28fbc387a Mon Sep 17 00:00:00 2001 From: Joerg Thalheim Date: Wed, 8 Nov 2017 12:28:32 +0000 Subject: [PATCH] dbench: fix compilation with glibc 2.6 stdint is needed for intptr_t --- pkgs/development/tools/misc/dbench/default.nix | 5 +++++ .../tools/misc/dbench/fix-missing-stdint.patch | 10 ++++++++++ 2 files changed, 15 insertions(+) create mode 100644 pkgs/development/tools/misc/dbench/fix-missing-stdint.patch diff --git a/pkgs/development/tools/misc/dbench/default.nix b/pkgs/development/tools/misc/dbench/default.nix index a1c9c11d34d1..a1c9e85a83ab 100644 --- a/pkgs/development/tools/misc/dbench/default.nix +++ b/pkgs/development/tools/misc/dbench/default.nix @@ -11,6 +11,11 @@ stdenv.mkDerivation rec { buildInputs = [ autoconf popt zlib ]; + patches = [ + # patch has been also sent upstream and might be included in future versions + ./fix-missing-stdint.patch + ]; + preConfigure = '' ./autogen.sh configureFlagsArray+=("--datadir=$out/share/dbench") diff --git a/pkgs/development/tools/misc/dbench/fix-missing-stdint.patch b/pkgs/development/tools/misc/dbench/fix-missing-stdint.patch new file mode 100644 index 000000000000..96cb28e9e55a --- /dev/null +++ b/pkgs/development/tools/misc/dbench/fix-missing-stdint.patch @@ -0,0 +1,10 @@ +--- dbench-65b1987.org/libnfs.c 2017-11-08 12:25:39.652147989 +0000 ++++ dbench-65b1987/libnfs.c 2017-11-08 12:26:20.269897054 +0000 +@@ -23,6 +23,7 @@ + #include + #include + #include ++#include + + #define discard_const(ptr) ((void *)((intptr_t)(ptr))) +