Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 1 | From ee43bcc3c8d69fe56a64c3487e2d3c780ea5d25e Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Thu, 13 Jul 2017 06:53:35 -0700 |
| 4 | Subject: [PATCH] tests/document-saver.c: Define ACCESSPERMS if not defined |
| 5 | already |
| 6 | |
| 7 | Helps compile with musl |
| 8 | |
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 10 | --- |
| 11 | tests/document-saver.c | 4 ++++ |
| 12 | 1 file changed, 4 insertions(+) |
| 13 | |
| 14 | diff --git a/tests/document-saver.c b/tests/document-saver.c |
| 15 | index 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 | -- |
| 30 | 2.13.2 |
| 31 | |