Author: iratqq
Date: Sun Jan 18 22:13:57 2009
New Revision: 5751

Modified:
   trunk/uim/uim-posix.c

Log:
* uim/uim-posix.c (open_flags):
  - Add ifdef guard of O_EXLOCK and  O_SHLOCK.


Modified: trunk/uim/uim-posix.c
==============================================================================
--- trunk/uim/uim-posix.c       (original)
+++ trunk/uim/uim-posix.c       Sun Jan 18 22:13:57 2009
@@ -407,11 +407,15 @@
 const static opt_args open_flags[] = {
   { O_CREAT,    "$O_CREAT" },
   { O_EXCL,     "$O_EXCL" },
+#ifdef O_EXLOCK
   { O_EXLOCK,   "$O_EXLOCK" },
+#endif
   { O_NONBLOCK, "$O_NONBLOCK" },
   { O_RDONLY,   "$O_RDONLY" },
   { O_RDWR,     "$O_RDWR" },
+#ifdef
   { O_SHLOCK,   "$O_SHLOCK" },
+#endif
   { O_TRUNC,    "$O_TRUNC" },
   { 0, 0 }
 };

Reply via email to