logo

oasis

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

0002-fts-Add-some-includes.patch (1092B)


  1. From 2280f1bcd79a988c95548f65b9e3d7e08ac51b09 Mon Sep 17 00:00:00 2001
  2. From: Michael Forney <mforney@mforney.org>
  3. Date: Mon, 18 Apr 2016 01:25:29 -0700
  4. Subject: [PATCH] fts: Add some includes
  5. ---
  6. include/fts.h | 2 ++
  7. lib/libc/gen/fts.c | 2 ++
  8. 2 files changed, 4 insertions(+)
  9. diff --git a/include/fts.h b/include/fts.h
  10. index eaf6be07c6f..a5b3aff91e7 100644
  11. --- a/include/fts.h
  12. +++ b/include/fts.h
  13. @@ -35,6 +35,8 @@
  14. #ifndef _FTS_H_
  15. #define _FTS_H_
  16. +#include <sys/cdefs.h>
  17. +
  18. typedef struct {
  19. struct _ftsent *fts_cur; /* current node */
  20. struct _ftsent *fts_child; /* linked list of children */
  21. diff --git a/lib/libc/gen/fts.c b/lib/libc/gen/fts.c
  22. index 77f26d6c27c..86585190a99 100644
  23. --- a/lib/libc/gen/fts.c
  24. +++ b/lib/libc/gen/fts.c
  25. @@ -31,6 +31,7 @@
  26. #include <sys/param.h> /* ALIGN ALIGNBYTES */
  27. #include <sys/stat.h>
  28. +#include <sys/types.h>
  29. #include <dirent.h>
  30. #include <errno.h>
  31. @@ -39,6 +40,7 @@
  32. #include <limits.h>
  33. #include <stdlib.h>
  34. #include <string.h>
  35. +#include <time.h>
  36. #include <unistd.h>
  37. #define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
  38. --
  39. 2.35.1