Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSantiago Fernandez Madero <safern@microsoft.com>2019-10-25 23:41:15 +0300
committerGitHub <noreply@github.com>2019-10-25 23:41:15 +0300
commitf2d99573e252503c715e4ed2bfac448f92dce2a8 (patch)
tree25e2c2acc72c296fc674bb348ce660e98f9c9587 /src/libraries/Native/Unix/System.Native/pal_networking.c
parente3949865f733d97c4e14acb1345a3561b88d2d33 (diff)
Revert "Add support to produce WebAssembly runtime assets (dotnet/corefx#41777)" (dotnet/corefx#42127)
This reverts commit dotnet/corefx@c57cba795a0e0a2905f6ce48009cde1d23cd7a19. Commit migrated from https://github.com/dotnet/corefx/commit/76cfbcfb7f6204b77eabc21f0bfbd83b7cf1cf80
Diffstat (limited to 'src/libraries/Native/Unix/System.Native/pal_networking.c')
-rw-r--r--src/libraries/Native/Unix/System.Native/pal_networking.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libraries/Native/Unix/System.Native/pal_networking.c b/src/libraries/Native/Unix/System.Native/pal_networking.c
index 8ee0569eefa..1ece3b64878 100644
--- a/src/libraries/Native/Unix/System.Native/pal_networking.c
+++ b/src/libraries/Native/Unix/System.Native/pal_networking.c
@@ -55,7 +55,7 @@
#include <ifaddrs.h>
#endif
#endif
-#if HAVE_LINUX_CAN_H
+#ifdef AF_CAN
#include <linux/can.h>
#endif
#if HAVE_KQUEUE
@@ -2001,7 +2001,7 @@ static bool TryConvertProtocolTypePalToPlatform(int32_t palAddressFamily, int32_
*platformProtocolType = palProtocolType;
return true;
#endif
-#if HAVE_LINUX_CAN_H
+#ifdef AF_CAN
case AddressFamily_AF_CAN:
switch (palProtocolType)
{
@@ -2492,7 +2492,8 @@ static int32_t WaitForSocketEventsInner(int32_t port, SocketEvent* buffer, int32
}
#else
-static const size_t SocketEventBufferElementSize = 0;
+#warning epoll/kqueue not detected; building with stub socket events support
+static const size_t SocketEventBufferElementSize = sizeof(struct pollfd);
static SocketEvents GetSocketEvents(int16_t filter, uint16_t flags)
{