Skip to content

Commit ecf9698

Browse files
Josh PetersonUnityAlex
authored andcommitted
Handle the empty file inode on macOS and FAT32 (with the proper define)
Previously, 5174f7e was an attempt to correct this issue. However, the `#define` scheme for Mono changed since then, so `PLATFORM_MACOSX` became `HOST_DARWIN`. This change uses the proper define to correct Unity case 1166108.
1 parent d9dd065 commit ecf9698

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mono/metadata/w32file-unix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1839,7 +1839,7 @@ static mode_t convert_perms(guint32 sharemode)
18391839

18401840
static gboolean already_shared(gboolean file_alread_shared, ino_t inode)
18411841
{
1842-
#if PLATFORM_MACOSX
1842+
#if HOST_DARWIN
18431843
/* On macOS and FAT32 partitions, we will sometimes get this inode value
18441844
* for more than one file. It means the file is empty (FILENO_EMPTY is
18451845
* defined in an internal header). When this happens, the hash table of

0 commit comments

Comments
 (0)