patch-util_ulockmgr_server_c 659 B

1234567891011121314151617181920212223242526272829
  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. +#ifdef HAVE_CONFIG_H
  7. + #include "config.h"
  8. +#endif
  9. +
  10. struct message {
  11. unsigned intr : 1;
  12. unsigned nofd : 1;
  13. @@ -124,6 +128,7 @@ static int receive_message(int sock, voi
  14. return res;
  15. }
  16. +#if !defined(HAVE_CLOSEFROM)
  17. static int closefrom(int minfd)
  18. {
  19. DIR *dir = opendir("/proc/self/fd");
  20. @@ -141,6 +146,7 @@ static int closefrom(int minfd)
  21. }
  22. return 0;
  23. }
  24. +#endif
  25. static void send_reply(int cfd, struct message *msg)
  26. {