summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-07-21 14:42:31 +0300
committermonsta <[email protected]>2016-08-12 21:53:17 +0300
commite4ad8f86366cbd72f773e756404fc751be55e784 (patch)
tree5b5df238fc84efa4ee9eb818f2000acdacb8b3e3
parentd1ee9352f4b1d9867d63d3262a883b5277a043be (diff)
downloadpluma-e4ad8f86366cbd72f773e756404fc751be55e784.tar.bz2
pluma-e4ad8f86366cbd72f773e756404fc751be55e784.tar.xz
tests: define ACCESSPERMS if not defined
taken from https://git.gnome.org/browse/gedit/commit/?id=de9e9716037a567bda012edda8d6f92f3cdd0ea2 patch pointed out by @pyhalov closes https://github.com/mate-desktop/pluma/issues/189
-rw-r--r--tests/document-saver.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/document-saver.c b/tests/document-saver.c
index 7e1ceb54..c67d1e02 100644
--- a/tests/document-saver.c
+++ b/tests/document-saver.c
@@ -29,6 +29,11 @@
#include <string.h>
#include <sys/stat.h>
+/* linux/bsd has it. others such as Solaris, do not */
+#ifndef ACCESSPERMS
+#define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO)
+#endif
+
#define DEFAULT_LOCAL_URI "/tmp/pluma-document-saver-test.txt"
#define DEFAULT_REMOTE_URI "sftp://localhost/tmp/pluma-document-saver-test.txt"
#define DEFAULT_CONTENT "hello world!"