2010-03-29 Zoltan Varga <vargaz@gmail.com>
authorZoltan Varga <vargaz@gmail.com>
Mon, 29 Mar 2010 21:34:56 +0000 (21:34 -0000)
committerZoltan Varga <vargaz@gmail.com>
Mon, 29 Mar 2010 21:34:56 +0000 (21:34 -0000)
* mph.h: Applied some changes from the openbsd ports tree to fix openbsd
support.

svn path=/trunk/mono/; revision=154401

support/ChangeLog
support/mph.h

index dd73ac3703fd75bc6bb06a0167b385c4fe1348c5..94f69e5608bf1d1c5cac9e131d8bdc4275448177 100644 (file)
@@ -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
index db0324cc65139ef7a7e59b3b45843a72624c8176..8a61999942641e4e81bb5c953e5c04f494510c4f 100644 (file)
@@ -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
 
 #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)