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
path: root/src
diff options
context:
space:
mode:
authorDong-Heon Jung <dheon.jung@samsung.com>2021-07-13 21:01:19 +0300
committerGitHub <noreply@github.com>2021-07-13 21:01:19 +0300
commit59ab54cd8c4af11f64f8a42615437e44f4712fb1 (patch)
tree3b191bd5017a66a46b27cfd4817e163159724f8b /src
parent04429ca36aa2a4075a1638a6025d2df74792741d (diff)
Fix Tizen ARMEL Build Failure (#55545)
* Fix Tizen ARMEL Build Failure * Check with MFD_CLOEXEC instead of ARM_SOFTFP
Diffstat (limited to 'src')
-rw-r--r--src/coreclr/minipal/Unix/doublemapping.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/coreclr/minipal/Unix/doublemapping.cpp b/src/coreclr/minipal/Unix/doublemapping.cpp
index a50b326861a..6e0278e3ccd 100644
--- a/src/coreclr/minipal/Unix/doublemapping.cpp
+++ b/src/coreclr/minipal/Unix/doublemapping.cpp
@@ -14,10 +14,11 @@
#include <assert.h>
#include <limits.h>
#include <errno.h>
-#ifdef TARGET_LINUX
+#if defined(TARGET_LINUX) && !defined(MFD_CLOEXEC)
#include <linux/memfd.h>
#include <sys/syscall.h> // __NR_memfd_create
-#endif // TARGET_LINUX
+#define memfd_create(...) syscall(__NR_memfd_create, __VA_ARGS__)
+#endif // TARGET_LINUX && !MFD_CLOEXEC
#include "minipal.h"
#if defined(TARGET_OSX) && defined(TARGET_AMD64)
@@ -32,10 +33,6 @@ static const off_t MaxDoubleMappedSize = 2048ULL*1024*1024*1024;
static const off_t MaxDoubleMappedSize = UINT_MAX;
#endif
-#ifdef TARGET_LINUX
-#define memfd_create(...) syscall(__NR_memfd_create, __VA_ARGS__)
-#endif // TARGET_LINUX
-
#endif // TARGET_OSX
bool VMToOSInterface::CreateDoubleMemoryMapper(void** pHandle, size_t *pMaxExecutableCodeSize)