lxc: fix glibc 2.25 incompatibility

This commit is contained in:
Jörg Thalheim 2017-02-24 12:39:19 +00:00 committed by Bjørn Forsman
parent 8f60b43d9c
commit 0eefe9bc62

View File

@ -33,6 +33,14 @@ stdenv.mkDerivation rec {
XML_CATALOG_FILES = "${docbook_xml_dtd_45}/xml/dtd/docbook/catalog.xml";
# FIXME
# glibc 2.25 moved major()/minor() to <sys/sysmacros.h>.
# this commit should detect this: https://github.com/lxc/lxc/pull/1388/commits/af6824fce9c9536fbcabef8d5547f6c486f55fdf
# However autotools checks if mkdev is still defined in <sys/types.h> runs before
# checking if major()/minor() is defined there. The mkdev check succeeds with
# a warning and the check which should set MAJOR_IN_SYSMACROS is skipped.
NIX_CFLAGS_COMPILE = [ "-DMAJOR_IN_SYSMACROS" ];
configureFlags = [
"--localstatedir=/var"
"--sysconfdir=/etc"