Specify sequential layout to avoid warning

This commit is contained in:
Petr Onderka 2016-09-25 18:13:42 +02:00
parent 63509b9e10
commit 782f96572d
1 changed files with 2 additions and 0 deletions

View File

@ -2,9 +2,11 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Net;
using System.Runtime.InteropServices;
namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Networking
{
[StructLayout(LayoutKind.Sequential)]
public struct SockAddr
{
// this type represents native memory occupied by sockaddr struct