diff options
author | monsta <[email protected]> | 2016-07-21 14:42:31 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-07-21 14:42:31 +0300 |
commit | 26d006bed0a52e487c7ad80977481362822a2107 (patch) | |
tree | 6a8f30970899ebaa959afe6ab2f296cc160aa613 | |
parent | 3be61ecc95b9c4fb5296eb443b4f758e4a22a653 (diff) | |
download | pluma-26d006bed0a52e487c7ad80977481362822a2107.tar.bz2 pluma-26d006bed0a52e487c7ad80977481362822a2107.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.c | 5 |
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!" |