mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-24 07:50:05 +01:00
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>
This commit is contained in:
parent
38bd1e123d
commit
cbb842666f
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue