libusb: fix header usage on musl, patch from Alpine
This commit is contained in:
parent
29b012e177
commit
77c58c9de1
@ -14,6 +14,8 @@ stdenv.mkDerivation {
|
||||
sha256 = "0nn5icrfm9lkhzw1xjvaks9bq3w6mjg86ggv3fn7kgi4nfvg8kj0";
|
||||
};
|
||||
|
||||
patches = stdenv.lib.optional stdenv.hostPlatform.isMusl ./fix-headers.patch;
|
||||
|
||||
meta = {
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
};
|
||||
|
10
pkgs/development/libraries/libusb/fix-headers.patch
Normal file
10
pkgs/development/libraries/libusb/fix-headers.patch
Normal file
@ -0,0 +1,10 @@
|
||||
--- libusb-compat-0.1.5.orig/libusb/usb.h
|
||||
+++ libusb-compat-0.1.5/libusb/usb.h
|
||||
@@ -25,6 +25,7 @@
|
||||
#ifndef __USB_H__
|
||||
#define __USB_H__
|
||||
|
||||
+#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <limits.h>
|
Loading…
Reference in New Issue
Block a user