util/fossilize_db: add ifdef for inotify header

FOZ_DB_UTIL_DYNAMIC_LIST is defined if the inotify header was
detected.

Fixes: 3b69b67545 ("util/fossilize_db: add runtime RO foz db loading via FOZ_DBS_DYNAMIC_LIST")

Signed-off-by: Juston Li <justonli@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20865>
This commit is contained in:
Juston Li 2023-01-23 12:45:56 -08:00 committed by Marge Bot
parent 65a917cb6e
commit f18702250f

View file

@ -37,11 +37,14 @@
#include <stdlib.h>
#include <string.h>
#include <sys/file.h>
#include <sys/inotify.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#ifdef FOZ_DB_UTIL_DYNAMIC_LIST
#include <sys/inotify.h>
#endif
#include "util/u_debug.h"
#include "crc32.h"