Remove LOCK_WRITE enum value (in pal/inc/rt/objidl.h) because it conflicts with fcntl...
authorIlia <ki.stfu@gmail.com>
Fri, 25 Oct 2019 14:41:20 +0000 (17:41 +0300)
committerJan Kotas <jkotas@microsoft.com>
Fri, 25 Oct 2019 14:41:20 +0000 (07:41 -0700)
It also completely removes LOCKTYPE enum.

Fixes dotnet/coreclr#27386

Commit migrated from https://github.com/dotnet/coreclr/commit/1cb29bdd266a8624601003fb8ea2ebd2534aab8f

src/coreclr/src/pal/inc/rt/objidl.h

index 4586a55..35edbc4 100644 (file)
@@ -102,13 +102,6 @@ enum tagSTREAM_SEEK
     }  STREAM_SEEK;
 
 typedef 
-enum tagLOCKTYPE
-    {  LOCK_WRITE      = 1,
-       LOCK_EXCLUSIVE  = 2,
-       LOCK_ONLYONCE   = 4
-    }  LOCKTYPE;
-
-typedef 
 enum tagSTATFLAG
     {  STATFLAG_DEFAULT        = 0,
        STATFLAG_NONAME = 1,