Просмотр исходного кода

Allow building on really old Linux kernels (thanks @sezero!)

Sam Lantinga 2 лет назад
Родитель
Сommit
0b28cbe385
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      src/hidapi/SDL_hidapi_linux.h

+ 1 - 0
src/hidapi/SDL_hidapi_linux.h

@@ -40,6 +40,7 @@ static const SDL_UDEV_Symbols *udev_ctx = NULL;
 #define udev_unref                                    udev_ctx->udev_unref
 
 #undef HIDAPI_H__
+#define HIDAPI_ALLOW_BUILD_WORKAROUND_KERNEL_2_6_39
 #include "linux/hid.c"
 #define HAVE_PLATFORM_BACKEND 1