Gamin: Fix compilation with glibc 2.9.

svn path=/nixpkgs/branches/stdenv-updates/; revision=14638
This commit is contained in:
Ludovic Courtès 2009-03-21 19:41:14 +00:00
parent d8e436c742
commit 61e0c6d495

View File

@ -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";
}