[xbuild] Set ProjectFile and TargetName metadata on target outputs.
[mono.git] / support / mph.h
index 224f01093333f715a3408958c87047673c7b07cf..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 (PLATFORM_WIN32) && !defined (EOVERFLOW)
-#define EOVERFLOW 75
-#endif /* def PLATFORM_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 (PLATFORM_WIN32)
+#if !defined (HOST_WIN32)
 
 /* 
  * Solaris doesn't define these BSD values, and if they're not present then
@@ -80,7 +84,7 @@
 #define XATTR_AUTO 0
 #endif /* ndef XATTR_AUTO */
 
-#endif /* ndef PLATFORM_WIN32 */
+#endif /* ndef HOST_WIN32 */
 
 typedef    gint64 mph_blkcnt_t;
 typedef    gint64 mph_blksize_t;