From 0b28cbe385c808b3cbe89b8eb7c2b10d7849599b Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 30 May 2023 16:36:13 -0700 Subject: [PATCH] Allow building on really old Linux kernels (thanks @sezero!) --- src/hidapi/SDL_hidapi_linux.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hidapi/SDL_hidapi_linux.h b/src/hidapi/SDL_hidapi_linux.h index f06627608..7face2418 100644 --- a/src/hidapi/SDL_hidapi_linux.h +++ b/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