[Groonga-commit] groonga/groonga [master] windows: define fallback S_IRUSR and S_IWUSR

Back to archive index

null+****@clear***** null+****@clear*****
2012年 5月 17日 (木) 21:56:38 JST


Kouhei Sutou	2012-05-17 21:56:38 +0900 (Thu, 17 May 2012)

  New Revision: 9e22dc5df1c192b62999f7b43d97f02aa207d9a2

  Log:
    windows: define fallback S_IRUSR and S_IWUSR

  Modified files:
    lib/ii.c

  Modified: lib/ii.c (+7 -0)
===================================================================
--- lib/ii.c    2012-05-17 21:50:25 +0900 (d28f4dd)
+++ lib/ii.c    2012-05-17 21:56:38 +0900 (c406596)
@@ -52,6 +52,13 @@
 
 #define NEXT_ADDR(p) (((byte *)(p)) + sizeof *(p))
 
+#ifndef S_IRUSR
+# define S_IRUSR 0400
+#endif /* S_IRUSR */
+#ifndef S_IWUSR
+# define S_IWUSR 0200
+#endif /* S_IWUSR */
+
 /* segment */
 
 inline static uint32_t




Groonga-commit メーリングリストの案内
Back to archive index