summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-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!"