Author: miguel
Date: 2005-05-26 00:13:53 -0400 (Thu, 26 May 2005)
New Revision: 45031
Modified:
branches/mono-1-1-7/mono/mono/io-layer/io.c
Log:
Fix from Dick for 75016
Modified: branches/mono-1-1-7/mono/mono/io-layer/io.c
===================================================================
--- branches/mono-1-1-7/mono/mono/io-layer/io.c 2005-05-26 04:12:53 UTC (rev
45030)
+++ branches/mono-1-1-7/mono/mono/io-layer/io.c 2005-05-26 04:13:53 UTC (rev
45031)
@@ -3518,7 +3518,14 @@
* if locks are not available (NFS for example),
* ignore the error
*/
- if (errno == ENOLCK) {
+ if (errno == ENOLCK
+#ifdef EOPNOTSUPP
+ || errno == EOPNOTSUPP
+#endif
+#ifdef ENOTSUP
+ || errno == ENOTSUP
+#endif
+ ) {
return (TRUE);
}
@@ -3548,6 +3555,21 @@
#endif
if (ret == -1) {
+ /*
+ * if locks are not available (NFS for example),
+ * ignore the error
+ */
+ if (errno == ENOLCK
+#ifdef EOPNOTSUPP
+ || errno == EOPNOTSUPP
+#endif
+#ifdef ENOTSUP
+ || errno == ENOTSUP
+#endif
+ ) {
+ return (TRUE);
+ }
+
SetLastError (ERROR_LOCK_VIOLATION);
return(FALSE);
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches