Skip to content

Commit 21007e9

Browse files
authored
Disable fcntl directory notify constants on Mono (#1923)
* Disable fcntl directory notify constants on Mono * Fix generate script check
1 parent 62b2f65 commit 21007e9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core/IronPython.Modules/fcntl.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,9 @@ private static bool TryGetInt64(object? obj, out long value) {
535535
#endregion
536536

537537

538+
#if NET
538539
// Linux only
540+
// Disabled on Mono because of inability to open directory descriptors
539541
#region Generated Directory Notify Flags
540542

541543
// *** BEGIN GENERATED CODE ***
@@ -573,4 +575,5 @@ private static bool TryGetInt64(object? obj, out long value) {
573575
// *** END GENERATED CODE ***
574576

575577
#endregion
578+
#endif
576579
}

0 commit comments

Comments
 (0)