diff options
author | Enrico Weigelt, metux IT consult <info@metux.net> | 2024-03-27 19:19:00 +0100 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2024-04-18 00:01:27 +0000 |
commit | 8ce76acddf5ae83546a0b9fbc01c862007ccba72 (patch) | |
tree | 91ab75a213dc267266b5cd4dd61067074291f0bc | |
parent | 6eea4f0b8ca384f965eb6110ef5b78c2c0f8a752 (diff) |
xfree86: os-support: bsd fix warning on unused label on NetBSD
The label is only used on FreeBSD, so compiling on NetBSD gives a
warning on unused label.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1447>
-rw-r--r-- | hw/xfree86/os-support/bsd/bsd_init.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/xfree86/os-support/bsd/bsd_init.c b/hw/xfree86/os-support/bsd/bsd_init.c index 393691be8..dcbb7b91e 100644 --- a/hw/xfree86/os-support/bsd/bsd_init.c +++ b/hw/xfree86/os-support/bsd/bsd_init.c @@ -255,7 +255,9 @@ xf86OpenConsole(void) sleep(1); } #endif +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) acquire_vt: +#endif if (!xf86Info.ShareVTs) { /* * now get the VT |