From 61e0c6d4953fbbb595924b0e6d1b7fc285442d8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Sat, 21 Mar 2009 19:41:14 +0000 Subject: [PATCH] Gamin: Fix compilation with glibc 2.9. svn path=/nixpkgs/branches/stdenv-updates/; revision=14638 --- pkgs/development/libraries/gamin/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/gamin/default.nix b/pkgs/development/libraries/gamin/default.nix index ffc1596a72b..f8c44fc0a08 100644 --- a/pkgs/development/libraries/gamin/default.nix +++ b/pkgs/development/libraries/gamin/default.nix @@ -8,5 +8,9 @@ stdenv.mkDerivation rec { }; buildInputs = [python pkgconfig glib]; - configureFlags = "--enable-shared --disable-static --disable-debug --with-python=${python}"; + + # `_GNU_SOURCE' is needed, e.g., to get `struct ucred' from + # with Glibc 2.9. + configureFlags = "--enable-shared --disable-static --disable-debug" + + " --with-python=${python} CPPFLAGS=-D_GNU_SOURCE"; }