logo

oasis

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

0007-Define-_GNU_SOURCE-for-realpath.patch (866B)


  1. From f66ab008acda13411c1de0c7a3b5d6faeca2df43 Mon Sep 17 00:00:00 2001
  2. From: Michael Forney <mforney@mforney.org>
  3. Date: Mon, 6 Sep 2021 23:30:18 -0700
  4. Subject: [PATCH] Define _GNU_SOURCE for realpath()
  5. ---
  6. lib/helper.c | 3 +++
  7. lib/mount_util.c | 3 +++
  8. 2 files changed, 6 insertions(+)
  9. diff --git a/lib/helper.c b/lib/helper.c
  10. index 64ff7ad..a291fa2 100644
  11. --- a/lib/helper.c
  12. +++ b/lib/helper.c
  13. @@ -10,6 +10,9 @@
  14. See the file COPYING.LIB.
  15. */
  16. +/* For realpath() */
  17. +#define _GNU_SOURCE
  18. +
  19. #include "config.h"
  20. #include "fuse_i.h"
  21. #include "fuse_misc.h"
  22. diff --git a/lib/mount_util.c b/lib/mount_util.c
  23. index 85ab119..d242cc2 100644
  24. --- a/lib/mount_util.c
  25. +++ b/lib/mount_util.c
  26. @@ -8,6 +8,9 @@
  27. See the file COPYING.LIB.
  28. */
  29. +/* For realpath() */
  30. +#define _GNU_SOURCE
  31. +
  32. #include "config.h"
  33. #include "mount_util.h"
  34. #include <stdio.h>
  35. --
  36. 2.32.0