diff options
author | Andi McClure <andi.mcclure@xamarin.com> | 2015-12-02 02:03:21 +0300 |
---|---|---|
committer | Andi McClure <andi.mcclure@xamarin.com> | 2015-12-02 02:03:21 +0300 |
commit | 249ee0686bf87f33acf2efde76f3645ef06bb886 (patch) | |
tree | ce4d4066fe301d04b146a5da435df54f8b90ceea /support | |
parent | 2a35f71d5e87f099d065fb9655a49b404565e313 (diff) |
Fail cleanly when MonoPosixHelper.dll version is wrong (bug #35655)
Add version keys to the C and C# versions of Mono.Posix and add static
constructors which fail early if the version keys differ.
Diffstat (limited to 'support')
-rw-r--r-- | support/map.h | 1 | ||||
-rw-r--r-- | support/stdlib.c | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/support/map.h b/support/map.h index 34cdb68ab4d..b121f032be7 100644 --- a/support/map.h +++ b/support/map.h @@ -2049,6 +2049,7 @@ int Mono_Posix_Stdlib_clearerr (void* stream); void* Mono_Posix_Stdlib_CreateFilePosition (void); int Mono_Posix_Stdlib_DumpFilePosition (char* buf, void* handle, int len); int Mono_Posix_Stdlib_EOF (void); +const char* Mono_Unix_VersionString (void); int Mono_Posix_Stdlib_EXIT_FAILURE (void); int Mono_Posix_Stdlib_EXIT_SUCCESS (void); int Mono_Posix_Stdlib_fgetpos (void* stream, void* pos); diff --git a/support/stdlib.c b/support/stdlib.c index 56df107016f..523ae924828 100644 --- a/support/stdlib.c +++ b/support/stdlib.c @@ -14,6 +14,13 @@ G_BEGIN_DECLS +// See Stdlib.cs +const char * +Mono_Unix_VersionString () +{ + return "MonoProject-2015-12-1"; +} + gint32 Mono_Posix_Stdlib_EXIT_FAILURE (void) { |