diff options
author | Zoltan Varga <vargaz@gmail.com> | 2010-03-30 01:34:56 +0400 |
---|---|---|
committer | Zoltan Varga <vargaz@gmail.com> | 2010-03-30 01:34:56 +0400 |
commit | 2c0fb349d4b4b8f70b597d5f4060875ca34cb566 (patch) | |
tree | 4d6f1ca71f69eb7221f3c7962e173a48dc82b0be /support | |
parent | c4e3787ace3045bfab50bbd7effb680a32b64642 (diff) |
2010-03-29 Zoltan Varga <vargaz@gmail.com>
* mph.h: Applied some changes from the openbsd ports tree to fix openbsd
support.
svn path=/trunk/mono/; revision=154401
Diffstat (limited to 'support')
-rw-r--r-- | support/ChangeLog | 5 | ||||
-rw-r--r-- | support/mph.h | 12 |
2 files changed, 13 insertions, 4 deletions
diff --git a/support/ChangeLog b/support/ChangeLog index dd73ac3703f..94f69e5608b 100644 --- a/support/ChangeLog +++ b/support/ChangeLog @@ -1,3 +1,8 @@ +2010-03-29 Zoltan Varga <vargaz@gmail.com> + + * mph.h: Applied some changes from the openbsd ports tree to fix openbsd + support. + 2010-03-23 Andreas Faerber <andreas.faerber@web.de> * old-map.c (map_Mono_Posix_Signals): Fix build for platforms where diff --git a/support/mph.h b/support/mph.h index db0324cc651..8a619999426 100644 --- a/support/mph.h +++ b/support/mph.h @@ -36,7 +36,7 @@ #include <stdint.h> /* for SIZE_MAX */ #endif -#if __APPLE__ || __BSD__ || __FreeBSD__ +#if __APPLE__ || __BSD__ || __FreeBSD__ || __OpenBSD__ #define MPH_ON_BSD #endif @@ -46,9 +46,13 @@ #define MPH_INTERNAL #endif -#if defined (HOST_WIN32) && !defined (EOVERFLOW) -#define EOVERFLOW 75 -#endif /* def HOST_WIN32 && ndef EOVERFLOW */ +#if !defined(EOVERFLOW) +# if defined(HOST_WIN32) +# define EOVERFLOW 75 +# elif defined(__OpenBSD__) +# define EOVERFLOW 87 +# endif +#endif /* !defined(EOVERFLOW) */ #if !defined (HOST_WIN32) |