summaryrefslogtreecommitdiffstats
path: root/meta-openembedded/meta-gnome/recipes-gnome/gedit/files/0001-tests-document-saver.c-Define-ACCESSPERMS-if-not-def.patch
blob: 11afe75ce1b5c3560d468a13aef44779c33ca33e (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
From ee43bcc3c8d69fe56a64c3487e2d3c780ea5d25e Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Thu, 13 Jul 2017 06:53:35 -0700
Subject: [PATCH] tests/document-saver.c: Define ACCESSPERMS if not defined
 already

Helps compile with musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 tests/document-saver.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/document-saver.c b/tests/document-saver.c
index 9f44d5a..811ade6 100644
--- a/tests/document-saver.c
+++ b/tests/document-saver.c
@@ -41,6 +41,10 @@
 #define UNOWNED_GROUP_LOCAL_URI "/tmp/gedit-document-saver-unowned-group.txt"
 #define UNOWNED_GROUP_REMOTE_URI "sftp://localhost/tmp/gedit-document-saver-unowned-group.txt"
 
+#if !defined(ACCESSPERMS)
+#define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO) /* 0777 */
+#endif
+
 static gboolean test_completed;
 static gboolean mount_completed;
 static gboolean mount_success;
-- 
2.13.2

OpenPOWER on IntegriCloud