From d7eab6061c68d22900676459d8443f37d911a1de Mon Sep 17 00:00:00 2001 From: torsten Date: Tue, 11 Aug 2009 16:21:19 +0000 Subject: [PATCH] be compatible with older kernels --- src/Input/FGLinuxEventInput.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Input/FGLinuxEventInput.cxx b/src/Input/FGLinuxEventInput.cxx index b0de0d617..2c16094c7 100644 --- a/src/Input/FGLinuxEventInput.cxx +++ b/src/Input/FGLinuxEventInput.cxx @@ -174,9 +174,15 @@ static struct EventTypes { { { EV_SW, SW_LID }, "switch-lid" }, { { EV_SW, SW_TABLET_MODE }, "switch-tablet-mode" }, { { EV_SW, SW_HEADPHONE_INSERT }, "switch-headphone-insert" }, +#ifdef SW_RFKILL_ALL { { EV_SW, SW_RFKILL_ALL }, "switch-rfkill" }, +#endif +#ifdef SW_MICROPHONE_INSERT { { EV_SW, SW_MICROPHONE_INSERT }, "switch-microphone-insert" }, +#endif +#ifdef SW_DOCK { { EV_SW, SW_DOCK }, "swtich-dock" }, +#endif { { EV_LED, LED_NUML}, "led-numlock" }, { { EV_LED, LED_CAPSL}, "led-capslock" },