diff options
| author | Michael Forney <mforney@mforney.org> | 2021-09-06 23:23:17 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2021-09-06 23:38:04 -0700 |
| commit | 031b61d7138cc1b50ddffffca76ed9e5bbc5d044 (patch) | |
| tree | fd7909b8de2de97274d3c0bd8cad5d99782d51ed /pkg/fuse/patch/0008-Define-_GNU_SOURCE-for-realpath.patch | |
| parent | 7fc1b2256b046713245e6f29927c8039e8c16767 (diff) | |
fuse: Various portability fixes
Diffstat (limited to 'pkg/fuse/patch/0008-Define-_GNU_SOURCE-for-realpath.patch')
| -rw-r--r-- | pkg/fuse/patch/0008-Define-_GNU_SOURCE-for-realpath.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkg/fuse/patch/0008-Define-_GNU_SOURCE-for-realpath.patch b/pkg/fuse/patch/0008-Define-_GNU_SOURCE-for-realpath.patch new file mode 100644 index 00000000..130d1ae7 --- /dev/null +++ b/pkg/fuse/patch/0008-Define-_GNU_SOURCE-for-realpath.patch @@ -0,0 +1,41 @@ +From f66ab008acda13411c1de0c7a3b5d6faeca2df43 Mon Sep 17 00:00:00 2001 +From: Michael Forney <mforney@mforney.org> +Date: Mon, 6 Sep 2021 23:30:18 -0700 +Subject: [PATCH] Define _GNU_SOURCE for realpath() + +--- + lib/helper.c | 3 +++ + lib/mount_util.c | 3 +++ + 2 files changed, 6 insertions(+) + +diff --git a/lib/helper.c b/lib/helper.c +index 64ff7ad..a291fa2 100644 +--- a/lib/helper.c ++++ b/lib/helper.c +@@ -10,6 +10,9 @@ + See the file COPYING.LIB. + */ + ++/* For realpath() */ ++#define _GNU_SOURCE ++ + #include "config.h" + #include "fuse_i.h" + #include "fuse_misc.h" +diff --git a/lib/mount_util.c b/lib/mount_util.c +index 85ab119..d242cc2 100644 +--- a/lib/mount_util.c ++++ b/lib/mount_util.c +@@ -8,6 +8,9 @@ + See the file COPYING.LIB. + */ + ++/* For realpath() */ ++#define _GNU_SOURCE ++ + #include "config.h" + #include "mount_util.h" + #include <stdio.h> +-- +2.32.0 + |
