Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

redstore: fix build under recent glibc

Previously the build would fail due to, e.g., `getaddrinfo` not being
defined.

(cherry picked from commit a4ae7b87f0e79960615fc77bd80fb5cadbf4f22c)

+5 -3
+5 -3
pkgs/servers/http/redstore/default.nix
··· 10 10 }; 11 11 12 12 buildInputs = [ gmp pkgconfig redland zlib librdf_raptor2 librdf_rasqal ]; 13 - 13 + 14 14 preConfigure = '' 15 - export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${librdf_raptor2}/include/raptor2" 16 - export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${librdf_rasqal}/include/rasqal" 15 + # Define _XOPEN_SOURCE to enable, e.g., getaddrinfo. 16 + configureFlagsArray+=( 17 + "CFLAGS=-D_XOPEN_SOURCE=600 -I${librdf_raptor2}/include/raptor2 -I${librdf_rasqal}/include/rasqal" 18 + ) 17 19 ''; 18 20 19 21 meta = {