pulseaudio: fix dependencies for openssl-3
[oi-userland.git] / components / x11 / mesa / patches / patch-src_util_disk__cache__os.c.patch
blob2a9df5a4bbeaa140f3a3ad141ba2cdcaf80fa488
1 $NetBSD: patch-src_util_disk__cache__os.c,v 1.1 2022/03/13 15:52:50 tnn Exp $
3 --- src/util/disk_cache_os.c.orig 2021-12-29 21:05:19.000000000 +0000
4 +++ src/util/disk_cache_os.c
5 @@ -167,9 +167,13 @@ choose_lru_file_matching(const char *dir
6 /* First count the number of files in the directory */
7 unsigned total_file_count = 0;
8 while ((dir_ent = readdir(dir)) != NULL) {
9 +#if defined(DT_REG)
10 if (dir_ent->d_type == DT_REG) { /* If the entry is a regular file */
11 total_file_count++;
13 +#else
14 + total_file_count++;
15 +#endif
18 /* Reset to the start of the directory */