glocalfile: Disable faccessat()-based query_exists on OpenBSD

This commit is contained in:
Antoine Jacoutot
2025-08-07 11:28:25 +00:00
committed by Philip Withnall
parent ebe003c1b7
commit ff47c01818

View File

@@ -1268,7 +1268,8 @@ g_local_file_query_info (GFile *file,
* so we have to use the fallback path. See * so we have to use the fallback path. See
* https://cs.android.com/android/_/android/platform/bionic/+/35778253a5ed71e87a608ca590b63729d9f88567 * https://cs.android.com/android/_/android/platform/bionic/+/35778253a5ed71e87a608ca590b63729d9f88567
*/ */
#if defined(HAVE_FACCESSAT) && !defined(__FreeBSD__) && !defined(__ANDROID__) #if defined(HAVE_FACCESSAT) && !defined(__FreeBSD__) && !defined(__ANDROID__) && \
!defined(__OpenBSD__)
static gboolean static gboolean
g_local_file_query_exists (GFile *file, g_local_file_query_exists (GFile *file,
GCancellable *cancellable) GCancellable *cancellable)
@@ -3253,7 +3254,8 @@ g_local_file_file_iface_init (GFileIface *iface)
iface->monitor_dir = g_local_file_monitor_dir; iface->monitor_dir = g_local_file_monitor_dir;
iface->monitor_file = g_local_file_monitor_file; iface->monitor_file = g_local_file_monitor_file;
iface->measure_disk_usage = g_local_file_measure_disk_usage; iface->measure_disk_usage = g_local_file_measure_disk_usage;
#if defined(HAVE_FACCESSAT) && !defined(__FreeBSD__) && !defined(__ANDROID__) #if defined(HAVE_FACCESSAT) && !defined(__FreeBSD__) && !defined(__ANDROID__) && \
!defined(__OpenBSD__)
iface->query_exists = g_local_file_query_exists; iface->query_exists = g_local_file_query_exists;
#endif #endif