]> git.mxchange.org Git - flightgear.git/commitdiff
be compatible with older kernels
authortorsten <torsten>
Tue, 11 Aug 2009 16:21:19 +0000 (16:21 +0000)
committerTim Moore <timoore@redhat.com>
Wed, 12 Aug 2009 21:45:54 +0000 (23:45 +0200)
src/Input/FGLinuxEventInput.cxx

index b0de0d617893720090ef7d5f8fdc6dc9664e938b..2c16094c76686c3a87289d70b46500a0f4ff53f0 100644 (file)
@@ -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" },