summarylogtreecommitdiffstats
path: root/fix_build.patch
diff options
context:
space:
mode:
Diffstat (limited to 'fix_build.patch')
-rw-r--r--fix_build.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/fix_build.patch b/fix_build.patch
new file mode 100644
index 000000000000..9b829b32797e
--- /dev/null
+++ b/fix_build.patch
@@ -0,0 +1,16 @@
+diff --git a/fuse/hashtbl.c b/fuse/hashtbl.c
+index 5772a41..dcedb32 100644
+--- a/fuse/hashtbl.c
++++ b/fuse/hashtbl.c
+@@ -1891,8 +1891,9 @@ void folder_tree_cleanup_filecache(folder_tree * tree, uint64_t allowed_size)
+
+ for (;;) {
+ endp = NULL;
+- retval = readdir_r(dirp, entryp, &endp);
+- if (retval != 0) {
++ errno = 0;
++ endp = readdir(dirp);
++ if (!endp && errno) {
+ fprintf(stderr, "readdir_r failed\n");
+ free(entryp);
+ closedir(dirp);