From 26d006bed0a52e487c7ad80977481362822a2107 Mon Sep 17 00:00:00 2001 From: monsta Date: Thu, 21 Jul 2016 14:42:31 +0300 Subject: 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 --- tests/document-saver.c | 5 +++++ 1 file changed, 5 insertions(+) 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 #include +/* 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!" -- cgit v1.2.1