[gedit] Define ACCESSPERMS if not defined.
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Define ACCESSPERMS if not defined.
- Date: Mon, 28 Jun 2010 20:43:01 +0000 (UTC)
commit de9e9716037a567bda012edda8d6f92f3cdd0ea2
Author: Philip Brown <phil bolthole com>
Date: Mon Jun 28 22:42:36 2010 +0200
Define ACCESSPERMS if not defined.
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 e5da2b6..ef97fe6 100644
--- a/tests/document-saver.c
+++ b/tests/document-saver.c
@@ -27,6 +27,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/gedit-document-saver-test.txt"
#define DEFAULT_REMOTE_URI "sftp://localhost/tmp/gedit-document-saver-test.txt"
#define DEFAULT_CONTENT "hello world!"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]