logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

0006-Add-missing-includes.patch (725B)


  1. From 7327c2ae180ccdafb879f4181e6a6f636c23816d Mon Sep 17 00:00:00 2001
  2. From: Michael Forney <mforney@mforney.org>
  3. Date: Sun, 5 Jun 2016 18:21:02 -0700
  4. Subject: [PATCH] Add missing includes
  5. stddef.h for offsetof
  6. sys/param.h for MIN
  7. ---
  8. sshfs.c | 2 ++
  9. 1 file changed, 2 insertions(+)
  10. diff --git a/sshfs.c b/sshfs.c
  11. index 17f7d6a..42ff750 100644
  12. --- a/sshfs.c
  13. +++ b/sshfs.c
  14. @@ -19,6 +19,7 @@
  15. #endif
  16. #include <assert.h>
  17. #include <stdbool.h>
  18. +#include <stddef.h>
  19. #include <stdio.h>
  20. #include <stdlib.h>
  21. #include <unistd.h>
  22. @@ -39,6 +40,7 @@
  23. #include <sys/socket.h>
  24. #include <sys/utsname.h>
  25. #include <sys/mman.h>
  26. +#include <sys/param.h>
  27. #include <poll.h>
  28. #include <netinet/in.h>
  29. #include <netinet/tcp.h>
  30. --
  31. 2.24.0