X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=support%2Fmph.h;h=e5992e5e71f03357080123ffb7a460016db8c488;hb=216b92db17ef8c7d6cf86e6cd483df2c420251eb;hp=cb5d94131da010bec4af329b7495109199948641;hpb=28f473c41df72b278eaf9784c29c2b8fa2cbe06a;p=mono.git diff --git a/support/mph.h b/support/mph.h index cb5d94131da..e5992e5e71f 100644 --- a/support/mph.h +++ b/support/mph.h @@ -54,11 +54,9 @@ # endif #endif /* !defined(EOVERFLOW) */ -#if !defined (HOST_WIN32) - /* - * Solaris doesn't define these BSD values, and if they're not present then - * map.c:Mono_Posix_FromSeekFlags() breaks badly; see: + * Solaris/Windows don't define these BSD values, and if they're not present + * then map.c:Mono_Posix_FromSeekFlags() breaks badly; see: * http://bugzilla.gnome.org/show_bug.cgi?id=370081 */ @@ -74,15 +72,17 @@ #define L_XTND SEEK_END #endif /* ndef L_XTND */ +#if !defined (HOST_WIN32) + /* * OS X doesn't define MAP_ANONYMOUS, but it does define MAP_ANON. * Alias them to fix: https://bugzilla.xamarin.com/show_bug.cgi?id=3419 */ -#ifdef PLATFORM_MACOSX +#ifdef HOST_DARWIN #ifndef MAP_ANONYMOUS #define MAP_ANONYMOUS MAP_ANON #endif /* ndef MAP_ANONYMOUS */ -#endif /* ndef PLATFORM_MACOSX */ +#endif /* ndef HOST_DARWIN */ /* * XATTR_AUTO is a synonym for 0 within XattrFlags, but most systems don't