Author: miguel
Date: 2005-05-26 00:12:53 -0400 (Thu, 26 May 2005)
New Revision: 45030
Modified:
trunk/mono/mono/io-layer/io.c
Log:
Fix from Dick for 75016
Modified: trunk/mono/mono/io-layer/io.c
===================================================================
--- trunk/mono/mono/io-layer/io.c 2005-05-26 03:49:41 UTC (rev 45029)
+++ trunk/mono/mono/io-layer/io.c 2005-05-26 04:12:53 UTC (rev 45030)
@@ -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