blob: 11afe75ce1b5c3560d468a13aef44779c33ca33e [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001From ee43bcc3c8d69fe56a64c3487e2d3c780ea5d25e Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 13 Jul 2017 06:53:35 -0700
4Subject: [PATCH] tests/document-saver.c: Define ACCESSPERMS if not defined
5 already
6
7Helps compile with musl
8
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 tests/document-saver.c | 4 ++++
12 1 file changed, 4 insertions(+)
13
14diff --git a/tests/document-saver.c b/tests/document-saver.c
15index 9f44d5a..811ade6 100644
16--- a/tests/document-saver.c
17+++ b/tests/document-saver.c
18@@ -41,6 +41,10 @@
19 #define UNOWNED_GROUP_LOCAL_URI "/tmp/gedit-document-saver-unowned-group.txt"
20 #define UNOWNED_GROUP_REMOTE_URI "sftp://localhost/tmp/gedit-document-saver-unowned-group.txt"
21
22+#if !defined(ACCESSPERMS)
23+#define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO) /* 0777 */
24+#endif
25+
26 static gboolean test_completed;
27 static gboolean mount_completed;
28 static gboolean mount_success;
29--
302.13.2
31