and that will freak everything out and crash. Define EOVERFLOW based on our headers and remove the Makefile hack that we don't need anymore.
30 lines
762 B
Plaintext
30 lines
762 B
Plaintext
$OpenBSD: patch-support_mph_h,v 1.2 2010/03/26 10:40:44 robert Exp $
|
|
--- support/mph.h.orig Fri Sep 25 16:58:14 2009
|
|
+++ support/mph.h Thu Mar 25 16:41:41 2010
|
|
@@ -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 (PLATFORM_WIN32) && !defined (EOVERFLOW)
|
|
-#define EOVERFLOW 75
|
|
-#endif /* def PLATFORM_WIN32 && ndef EOVERFLOW */
|
|
+#if !defined(EOVERFLOW)
|
|
+# if defined(PLATFORM_WIN32)
|
|
+# define EOVERFLOW 75
|
|
+# elif defined(__OpenBSD__)
|
|
+# define EOVERFLOW 87
|
|
+# endif
|
|
+#endif /* !defined(EOVERFLOW) */
|
|
|
|
#if !defined (PLATFORM_WIN32)
|
|
|