Aric Stewart : winebus.sys: Handle older kernel headers lacking feature ioctls.
Alexandre Julliard
julliard at winehq.org
Wed Dec 7 15:20:30 CST 2016
Module: wine
Branch: master
Commit: ea9df98c692175065a80f113100f92d13d3cae12
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ea9df98c692175065a80f113100f92d13d3cae12
Author: Aric Stewart <aric at codeweavers.com>
Date: Tue Dec 6 13:09:27 2016 -0600
winebus.sys: Handle older kernel headers lacking feature ioctls.
Signed-off-by: Aric Stewart <aric at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/winebus.sys/bus_udev.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/winebus.sys/bus_udev.c b/dlls/winebus.sys/bus_udev.c
index 515ae70..d6bb48a 100644
--- a/dlls/winebus.sys/bus_udev.c
+++ b/dlls/winebus.sys/bus_udev.c
@@ -319,7 +319,7 @@ static NTSTATUS hidraw_set_output_report(DEVICE_OBJECT *device, UCHAR id, BYTE *
static NTSTATUS hidraw_get_feature_report(DEVICE_OBJECT *device, UCHAR id, BYTE *report, DWORD length, ULONG_PTR *read)
{
-#ifdef HAVE_LINUX_HIDRAW_H
+#if defined(HAVE_LINUX_HIDRAW_H) && defined(HIDIOCGFEATURE)
int rc;
struct platform_private* ext = impl_from_DEVICE_OBJECT(device);
report[0] = id;
@@ -343,7 +343,7 @@ static NTSTATUS hidraw_get_feature_report(DEVICE_OBJECT *device, UCHAR id, BYTE
static NTSTATUS hidraw_set_feature_report(DEVICE_OBJECT *device, UCHAR id, BYTE *report, DWORD length, ULONG_PTR *written)
{
-#ifdef HAVE_LINUX_HIDRAW_H
+#if defined(HAVE_LINUX_HIDRAW_H) && defined(HIDIOCSFEATURE)
int rc;
struct platform_private* ext = impl_from_DEVICE_OBJECT(device);
BYTE *feature_buffer;
More information about the wine-cvs
mailing list