From def1bec4cd7653a2d9d0ec9858826efa8bb1d7e1 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 23 Jan 2007 13:52:34 +0000 Subject: [PATCH] * Fix e2fsprogs on dietlibc on i686-linux. svn path=/nixpkgs/trunk/; revision=7772 --- pkgs/os-specific/linux/e2fsprogs/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/e2fsprogs/default.nix b/pkgs/os-specific/linux/e2fsprogs/default.nix index 732abc52ef0..dd63bdd0cf7 100644 --- a/pkgs/os-specific/linux/e2fsprogs/default.nix +++ b/pkgs/os-specific/linux/e2fsprogs/default.nix @@ -15,5 +15,8 @@ stdenv.mkDerivation { preInstall = "installFlagsArray=('LN=ln -s')"; postInstall = "make install-libs"; NIX_CFLAGS_COMPILE = - if stdenv ? isDietLibC then "-UHAVE_SYS_PRCTL_H -DHAVE_LSEEK64_PROTOTYPE=1 -Dstat64=stat" else ""; + if stdenv ? isDietLibC then + "-UHAVE_SYS_PRCTL_H " + + (if stdenv.system == "x86_64-linux" then "-DHAVE_LSEEK64_PROTOTYPE=1 -Dstat64=stat" else "") + else ""; }