linuxPackages.usbip: gcc warnings fixed in linux>=5.4

This commit is contained in:
Franz Pletz 2019-12-26 19:28:06 +01:00
parent d1fa6eae3f
commit 2811645328
No known key found for this signature in database
GPG key ID: 846FDED7792617B4

View file

@ -1,11 +1,11 @@
{ stdenv, kernel, udev, autoconf, automake, libtool }:
{ lib, stdenv, kernel, udev, autoconf, automake, libtool }:
stdenv.mkDerivation {
name = "usbip-${kernel.name}";
src = kernel.src;
patches = [
patches = lib.optionals (lib.versionAtLeast "5.4" kernel.version) [
# fixes build with gcc8
./fix-snprintf-truncation.patch
# fixes build with gcc9