fuse: use latest 2.x version
[openadk.git] / package / fuse / patches / patch-util_ulockmgr_server_c
blobddf0472e1cb0c7e14b416202cf48c4d9aac4e092
1 --- fuse-2.9.9.orig/util/ulockmgr_server.c      2019-01-04 14:33:33.000000000 +0100
2 +++ fuse-2.9.9/util/ulockmgr_server.c   2024-02-12 17:14:14.798450294 +0100
3 @@ -22,6 +22,10 @@
4  #include <sys/socket.h>
5  #include <sys/wait.h>
6  
7 +#ifdef HAVE_CONFIG_H
8 +       #include "config.h"
9 +#endif
11  struct message {
12         unsigned intr : 1;
13         unsigned nofd : 1;
14 @@ -124,6 +128,7 @@ static int receive_message(int sock, voi
15         return res;
16  }
18 +#if !defined(HAVE_CLOSEFROM)
19  static int closefrom(int minfd)
20  {
21         DIR *dir = opendir("/proc/self/fd");
22 @@ -141,6 +146,7 @@ static int closefrom(int minfd)
23         }
24         return 0;
25  }
26 +#endif
28  static void send_reply(int cfd, struct message *msg)
29  {