mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-28 13:00:42 +02:00
radv: fix build on BSD
Just disable inotify for BDS systems.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6060
Fixes: c50557d961 ("radv: allow applications to dynamically change RADV_FORCE_VRS")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15105>
This commit is contained in:
parent
2e86767370
commit
83ee08f6d1
1 changed files with 4 additions and 4 deletions
|
|
@ -35,7 +35,7 @@
|
|||
#include <sys/sysmacros.h>
|
||||
#endif
|
||||
|
||||
#ifndef _WIN32
|
||||
#ifdef __linux__
|
||||
#include <sys/inotify.h>
|
||||
#endif
|
||||
|
||||
|
|
@ -2974,7 +2974,7 @@ radv_parse_force_vrs_config_file(const char *config_file)
|
|||
return force_vrs;
|
||||
}
|
||||
|
||||
#ifndef _WIN32
|
||||
#ifdef __linux__
|
||||
|
||||
#define BUF_LEN ((10 * (sizeof(struct inotify_event) + NAME_MAX + 1)))
|
||||
|
||||
|
|
@ -3020,7 +3020,7 @@ radv_notifier_thread_run(void *data)
|
|||
static int
|
||||
radv_device_init_notifier(struct radv_device *device)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
#ifndef __linux__
|
||||
return true;
|
||||
#else
|
||||
struct radv_notifier *notifier = &device->notifier;
|
||||
|
|
@ -3053,7 +3053,7 @@ fail_watch:
|
|||
static void
|
||||
radv_device_finish_notifier(struct radv_device *device)
|
||||
{
|
||||
#ifndef _WIN32
|
||||
#ifdef __linux__
|
||||
struct radv_notifier *notifier = &device->notifier;
|
||||
|
||||
if (!notifier->thread)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue