xfree86: os-support: move hidden Solaris-specific symbols out of public header

These aren't exported at all, so no need to have it in public header.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1456>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-03-14 15:21:04 +01:00 committed by Marge Bot
parent 7429f8ee8f
commit 0f715b4ca4
4 changed files with 10 additions and 7 deletions

View File

@ -39,6 +39,7 @@
#include "xf86Config.h"
#include "xf86MatchDrivers.h"
#include "xf86Priv.h"
#include "xf86_os_support.h"
#include "xf86_OSlib.h"
#include "xf86platformBus.h"
#include "xf86pciBus.h"

View File

@ -67,7 +67,7 @@ static char consoleDev[PATH_MAX] = "/dev/fb";
/* Set by -dev argument on CLI
Used by hw/xfree86/common/xf86AutoConfig.c for VIS_GETIDENTIFIER */
_X_HIDDEN char xf86SolarisFbDev[PATH_MAX] = "/dev/fb";
char xf86SolarisFbDev[PATH_MAX] = "/dev/fb";
#ifdef HAS_USL_VTS
static void

View File

@ -104,15 +104,9 @@
#endif
#include <sys/kd.h>
#include <sys/vt.h>
extern _X_HIDDEN void xf86VTAcquire(int);
extern _X_HIDDEN void xf86VTRelease(int);
#endif
#if defined(__sun)
#include <sys/fbio.h>
extern _X_HIDDEN char xf86SolarisFbDev[PATH_MAX];
#include <sys/kbd.h>
#include <sys/kbio.h>

View File

@ -59,4 +59,12 @@ void
xf86PlatformReprobeDevice(int index, struct OdevAttributes *attribs);
#endif
#if defined(__sun)
extern char xf86SolarisFbDev[PATH_MAX];
/* these are only used inside sun-specific os-support */
void xf86VTAcquire(int);
void xf86VTRelease(int);
#endif
#endif /* _XSERVER_XF86_OS_SUPPORT */