xorg-server-1.18: fixup build with glibc-2.26

It's non-default version required by amdgpu-pro ATM.  Thanks to Mounium.
This commit is contained in:
Vladimír Čunát 2017-12-03 16:22:12 +01:00
parent 17218f0bac
commit e001bd2c2f
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -450,6 +450,7 @@ in
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ dri2proto dri3proto renderproto libdrm openssl libX11 libXau libXaw libxcb xcbutil xcbutilwm xcbutilimage xcbutilkeysyms xcbutilrenderutil libXdmcp libXfixes libxkbfile libXmu libXpm libXrender libXres libXt ];
postPatch = "sed '1i#include <malloc.h>' -i include/os.h";
meta.platforms = stdenv.lib.platforms.unix;
} else throw "unsupported xorg abiCompat: ${args.abiCompat}";