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:
authorAdeel Mujahid <adeelbm@outlook.com>2020-04-14 04:20:44 +0300
committerGitHub <noreply@github.com>2020-04-14 04:20:44 +0300
commitb88be15f5cca9d4a04980974bedea63e12af06e1 (patch)
tree506ce6792818b59ae034a142eb0625eb69d84e88 /src/libraries/Native/Unix/System.Native/pal_networking.c
parent7ac8db8943d944d0839af7671812e147703c497b (diff)
Port Native libraries to SunOS (#34867)
Diffstat (limited to 'src/libraries/Native/Unix/System.Native/pal_networking.c')
-rw-r--r--src/libraries/Native/Unix/System.Native/pal_networking.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libraries/Native/Unix/System.Native/pal_networking.c b/src/libraries/Native/Unix/System.Native/pal_networking.c
index 08540e24b18..05066940fd9 100644
--- a/src/libraries/Native/Unix/System.Native/pal_networking.c
+++ b/src/libraries/Native/Unix/System.Native/pal_networking.c
@@ -56,6 +56,10 @@
#if HAVE_LINUX_CAN_H
#include <linux/can.h>
#endif
+#if HAVE_SYS_FILIO_H
+#include <sys/filio.h>
+#endif
+
#if HAVE_KQUEUE
#if KEVENT_HAS_VOID_UDATA
static void* GetKeventUdata(uintptr_t udata)
@@ -2310,7 +2314,7 @@ static bool TryConvertProtocolTypePlatformToPal(int32_t palAddressFamily, int pl
return true;
default:
- *palProtocolType = (int)palProtocolType;
+ *palProtocolType = (int32_t)(intptr_t)palProtocolType;
return false;
}