lxc: fix glibc 2.25 incompatibility

authored by Jörg Thalheim and committed by Bjørn Forsman 0eefe9bc 8f60b43d

+8
+8
pkgs/os-specific/linux/lxc/default.nix
··· 33 34 XML_CATALOG_FILES = "${docbook_xml_dtd_45}/xml/dtd/docbook/catalog.xml"; 35 36 configureFlags = [ 37 "--localstatedir=/var" 38 "--sysconfdir=/etc"
··· 33 34 XML_CATALOG_FILES = "${docbook_xml_dtd_45}/xml/dtd/docbook/catalog.xml"; 35 36 + # FIXME 37 + # glibc 2.25 moved major()/minor() to <sys/sysmacros.h>. 38 + # this commit should detect this: https://github.com/lxc/lxc/pull/1388/commits/af6824fce9c9536fbcabef8d5547f6c486f55fdf 39 + # However autotools checks if mkdev is still defined in <sys/types.h> runs before 40 + # checking if major()/minor() is defined there. The mkdev check succeeds with 41 + # a warning and the check which should set MAJOR_IN_SYSMACROS is skipped. 42 + NIX_CFLAGS_COMPILE = [ "-DMAJOR_IN_SYSMACROS" ]; 43 + 44 configureFlags = [ 45 "--localstatedir=/var" 46 "--sysconfdir=/etc"