Merge pull request #4033 from ntherning/no-stdcall-for-icalls-on-windows-32-bit
[mono.git] / mcs / class / Mono.Posix / Mono.Unix / PeerCred.cs
index d071ec9f280741992e01dd23cf27ba7ef6a45023..2f8d71ed75b87bed22255d0ae211c2eeb2017860 100644 (file)
@@ -33,6 +33,14 @@ using System.Net.Sockets;
 
 namespace Mono.Unix
 {
+#pragma warning disable 649
+       internal struct PeerCredData {
+               public int pid;
+               public int uid;
+               public int gid;
+       }
+#pragma warning restore 649
+
        public class PeerCred
        {
                /* Make sure this doesn't clash with anything in
@@ -40,14 +48,14 @@ namespace Mono.Unix
                 * runtime
                 */
                private const int so_peercred=10001;
-               private Mono.Posix.PeerCredData data;
+               private PeerCredData data;
                
                public PeerCred (Socket sock) {
                        if (sock.AddressFamily != AddressFamily.Unix) {
                                throw new ArgumentException ("Only Unix sockets are supported", "sock");
                        }
 
-                       data = (Mono.Posix.PeerCredData)
+                       data = (PeerCredData)
                                sock.GetSocketOption (SocketOptionLevel.Socket, (SocketOptionName)so_peercred);
                }