Browse Source

update mac project

Luke Pulverenti 8 years ago
parent
commit
33db468646
1 changed files with 11 additions and 1 deletions
  1. 11 1
      MediaBrowser.Server.Mac/Main.cs

+ 11 - 1
MediaBrowser.Server.Mac/Main.cs

@@ -302,6 +302,16 @@ namespace MediaBrowser.Server.Mac
 		{
 			return true;
 		}
-	}
+    }
+
+    public class MonoEnvironmentInfo : EnvironmentInfo
+    {
+        public bool IsBsd { get; set; }
+
+        public virtual string GetUserId()
+        {
+            return Syscall.getuid().ToString(CultureInfo.InvariantCulture);
+        }
+    }
 }