summaryrefslogtreecommitdiff
path: root/pkg/fuse/patch/0007-Define-_GNU_SOURCE-for-realpath.patch
blob: 130d1ae777438c2a12514211f6415b54a965a6d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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