about summary refs log tree commit diff
path: root/pkgs/development/libraries/gamin
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2009-03-21 19:41:14 +0000
committerLudovic Courtès <ludo@gnu.org>2009-03-21 19:41:14 +0000
commit61e0c6d4953fbbb595924b0e6d1b7fc285442d8d (patch)
treed6ee6d9d7737aa061f375cceddad1869de41928c /pkgs/development/libraries/gamin
parentd8e436c74211ca05cc0479edc89115acb408639d (diff)
Gamin: Fix compilation with glibc 2.9.
svn path=/nixpkgs/branches/stdenv-updates/; revision=14638
Diffstat (limited to 'pkgs/development/libraries/gamin')
-rw-r--r--pkgs/development/libraries/gamin/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/development/libraries/gamin/default.nix b/pkgs/development/libraries/gamin/default.nix
index ffc1596a72b4b..f8c44fc0a08b2 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
+        # <sys/socket.h> with Glibc 2.9.
+	configureFlags = "--enable-shared --disable-static --disable-debug"
+          + " --with-python=${python} CPPFLAGS=-D_GNU_SOURCE";
 }