From 2c0fb349d4b4b8f70b597d5f4060875ca34cb566 Mon Sep 17 00:00:00 2001 From: Zoltan Varga Date: Mon, 29 Mar 2010 21:34:56 +0000 Subject: [PATCH] 2010-03-29 Zoltan Varga * mph.h: Applied some changes from the openbsd ports tree to fix openbsd support. svn path=/trunk/mono/; revision=154401 --- support/ChangeLog | 5 +++++ 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 + + * mph.h: Applied some changes from the openbsd ports tree to fix openbsd + support. + 2010-03-23 Andreas Faerber * 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 /* 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) -- 2.25.1