dbench: fix compilation with glibc 2.6

stdint is needed for intptr_t
This commit is contained in:
Joerg Thalheim 2017-11-08 12:28:32 +00:00
parent 26ac0de8be
commit 81154d929a
2 changed files with 15 additions and 0 deletions

View file

@ -11,6 +11,11 @@ stdenv.mkDerivation rec {
buildInputs = [ autoconf popt zlib ]; buildInputs = [ autoconf popt zlib ];
patches = [
# patch has been also sent upstream and might be included in future versions
./fix-missing-stdint.patch
];
preConfigure = '' preConfigure = ''
./autogen.sh ./autogen.sh
configureFlagsArray+=("--datadir=$out/share/dbench") configureFlagsArray+=("--datadir=$out/share/dbench")

View file

@ -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 <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
+#include <stdint.h>
#define discard_const(ptr) ((void *)((intptr_t)(ptr)))