forked from mirrors/nixpkgs
dbench: fix compilation with glibc 2.6
stdint is needed for intptr_t
This commit is contained in:
parent
26ac0de8be
commit
81154d929a
|
@ -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")
|
||||
|
|
10
pkgs/development/tools/misc/dbench/fix-missing-stdint.patch
Normal file
10
pkgs/development/tools/misc/dbench/fix-missing-stdint.patch
Normal 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)))
|
||||
|
Loading…
Reference in a new issue