diff options
author | Alexandr Shadchin <Alexandr.Shadchin@gmail.com> | 2011-08-26 21:42:41 +0600 |
---|---|---|
committer | Alexandr Shadchin <Alexandr.Shadchin@gmail.com> | 2011-09-29 23:05:35 +0600 |
commit | cbb842666fa7ff26bbdd1e89a7f41b835a677c5e (patch) | |
tree | c2ec145a71c4715baf8d4ae9a3ffea54d805f8b3 | |
parent | 38bd1e123d959e0a13514ec415afc8bfb5a170f2 (diff) |
bsd: Variable devConsoleFd need only if defined PCCONS_SUPPORT
Signed-off-by: Alexandr Shadchin <Alexandr.Shadchin@gmail.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
Tested-by: Matthieu Herrb <matthieu.herrb@laas.fr>
-rw-r--r-- | hw/xfree86/os-support/bsd/bsd_init.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/xfree86/os-support/bsd/bsd_init.c b/hw/xfree86/os-support/bsd/bsd_init.c index f9d546f28..5f5008fee 100644 --- a/hw/xfree86/os-support/bsd/bsd_init.c +++ b/hw/xfree86/os-support/bsd/bsd_init.c @@ -41,7 +41,10 @@ #include <errno.h> static Bool KeepTty = FALSE; + +#ifdef PCCONS_SUPPORT static int devConsoleFd = -1; +#endif #if defined (SYSCONS_SUPPORT) || defined (PCVT_SUPPORT) static int VTnum = -1; static int initialVT = -1; @@ -694,8 +697,10 @@ xf86CloseConsole() } close(xf86Info.consoleFd); +#ifdef PCCONS_SUPPORT if (devConsoleFd >= 0) close(devConsoleFd); +#endif return; } |