[PATCH input-keyboard 02/13] Missing #ifdef for PCCONS
Gaetan Nadon
memsize at videotron.ca
Wed May 12 10:11:18 PDT 2010
Compiling this BSD file under Linux finds errors in conditional code.
PCCONS is undefined and should be protected with PCCONS_SUPPORT
Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
---
src/bsd_kbd.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/bsd_kbd.c b/src/bsd_kbd.c
index bc80692..8575ab2 100644
--- a/src/bsd_kbd.c
+++ b/src/bsd_kbd.c
@@ -88,8 +88,10 @@ SetKbdLeds(InputInfoPtr pInfo, int leds)
switch (pKbd->consType) {
+#if defined (PCCONS_SUPPORT)
case PCCONS:
break;
+#endif
#if defined (SYSCONS_SUPPORT) || defined (PCVT_SUPPORT)
case SYSCONS:
case PCVT:
@@ -111,8 +113,11 @@ GetKbdLeds(InputInfoPtr pInfo)
int leds = 0, real_leds = 0;
switch (pKbd->consType) {
+
+#if defined (PCCONS_SUPPORT)
case PCCONS:
break;
+#endif
#if defined (SYSCONS_SUPPORT) || defined (PCVT_SUPPORT)
case SYSCONS:
case PCVT:
@@ -145,8 +150,10 @@ SetKbdRepeat(InputInfoPtr pInfo, char rad)
KbdDevPtr pKbd = (KbdDevPtr) pInfo->private;
switch (pKbd->consType) {
+#if defined (PCCONS_SUPPORT)
case PCCONS:
break;
+#endif
#if defined (SYSCONS_SUPPORT) || defined (PCVT_SUPPORT)
case SYSCONS:
case PCVT:
--
1.6.0.4
More information about the xorg-devel
mailing list