# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/fuse2/hotfix-closefrom.patch # Copyright (C) 2023 - 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- Hotfix: only define closefrom when not using glibc as it already exists and has a conflicting type. NoTag --- fuse-2.9.9/util/ulockmgr_server.c.vanilla 2023-01-19 15:24:06.900537152 +0100 +++ fuse-2.9.9/util/ulockmgr_server.c 2023-01-19 15:36:12.563577111 +0100 @@ -124,6 +124,7 @@ return res; } +#ifndef __GLIBC__ static int closefrom(int minfd) { DIR *dir = opendir("/proc/self/fd"); @@ -141,6 +142,7 @@ } return 0; } +#endif static void send_reply(int cfd, struct message *msg) {