xfree86: os-support: move CONSOLE_X_MODE_ON/OFF to bsd_init.c

These are only used in bsd_init.c, so move them there.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1420>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-03-15 18:47:12 +01:00 committed by Marge Bot
parent 8958a99c02
commit 758bee502d
2 changed files with 8 additions and 6 deletions

View File

@ -45,6 +45,14 @@
#include "os/osdep.h" #include "os/osdep.h"
#ifndef CONSOLE_X_MODE_ON
#define CONSOLE_X_MODE_ON _IO('t',121)
#endif
#ifndef CONSOLE_X_MODE_OFF
#define CONSOLE_X_MODE_OFF _IO('t',122)
#endif
static Bool KeepTty = FALSE; static Bool KeepTty = FALSE;
#ifdef PCCONS_SUPPORT #ifdef PCCONS_SUPPORT

View File

@ -197,12 +197,6 @@ struct pcvtid {
#include <sys/mouse.h> #include <sys/mouse.h>
#endif #endif
/* Include these definitions in case ioctl_pc.h didn't get included */ /* Include these definitions in case ioctl_pc.h didn't get included */
#ifndef CONSOLE_X_MODE_ON
#define CONSOLE_X_MODE_ON _IO('t',121)
#endif
#ifndef CONSOLE_X_MODE_OFF
#define CONSOLE_X_MODE_OFF _IO('t',122)
#endif
#ifndef CONSOLE_X_TV_ON #ifndef CONSOLE_X_TV_ON
#define CONSOLE_X_TV_ON _IOW('t',155,int) #define CONSOLE_X_TV_ON _IOW('t',155,int)
#endif #endif