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