redstore: fix build under recent glibc

Previously the build would fail due to, e.g., `getaddrinfo` not being
defined.
This commit is contained in:
Robert Helgesson 2016-08-17 22:31:07 +02:00
parent 80c98d76ca
commit a4ae7b87f0
No known key found for this signature in database
GPG Key ID: C3DB11069E65DC86

View File

@ -12,8 +12,10 @@ stdenv.mkDerivation rec {
buildInputs = [ gmp pkgconfig redland zlib librdf_raptor2 librdf_rasqal ];
preConfigure = ''
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${librdf_raptor2}/include/raptor2"
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${librdf_rasqal}/include/rasqal"
# Define _XOPEN_SOURCE to enable, e.g., getaddrinfo.
configureFlagsArray+=(
"CFLAGS=-D_XOPEN_SOURCE=600 -I${librdf_raptor2}/include/raptor2 -I${librdf_rasqal}/include/rasqal"
)
'';
meta = {