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

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas 'Sortie' Termansen <sortie@maxsi.org>2014-06-24 03:21:31 +0400
committerRodrigo Kumpera <kumpera@gmail.com>2014-06-26 18:08:54 +0400
commit4ea14076550b95dcae00e2fe7a456961301f3959 (patch)
treeb043b822e9da6ce54b4ace3288094ffa97fb3227 /winconfig.h
parent37acf9e69ce1795b4537073654621c8152d23b10 (diff)
Remove MONO_SIZEOF_SUNPATH
The configure script determines the size of the sun_path member in struct sockaddr_un. However the test is broken during cross-compilation (with a comment that there is no macro to determine the size of struct members at configure time) and MONO_SIZEOF_SUNPATH defaults to 0 (leading to buffer underflows and overflows). There is no reason to determine this at configure time when a simple traditional sizeof will do the job at compile time. This change is released under the MIT/X11 license.
Diffstat (limited to 'winconfig.h')
-rw-r--r--winconfig.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/winconfig.h b/winconfig.h
index a4851db6db4..0c690d3a35c 100644
--- a/winconfig.h
+++ b/winconfig.h
@@ -565,9 +565,6 @@
/* Enable the allocation and indexing of arrays greater than Int32.MaxValue */
/* #undef MONO_BIG_ARRAYS */
-/* Sizeof sock_un.sun_path */
-/* #undef MONO_SIZEOF_SUNPATH */
-
/* Xen-specific behaviour */
/* #define MONO_XEN_OPT 1 */