diff --git a/src/core/IronPython.Modules/fcntl.cs b/src/core/IronPython.Modules/fcntl.cs index 67aeb43d1..ed9189858 100644 --- a/src/core/IronPython.Modules/fcntl.cs +++ b/src/core/IronPython.Modules/fcntl.cs @@ -535,7 +535,9 @@ private static bool TryGetInt64(object? obj, out long value) { #endregion +#if NET // Linux only + // Disabled on Mono because of inability to open directory descriptors #region Generated Directory Notify Flags // *** BEGIN GENERATED CODE *** @@ -573,4 +575,5 @@ private static bool TryGetInt64(object? obj, out long value) { // *** END GENERATED CODE *** #endregion +#endif } \ No newline at end of file