Merge pull request #2670 from lambdageek/dev/monoerror-mono_runtime_object_init
[mono.git] / support / stdio.c
index 444189e5aa1459204dcd22d20dace218a5912e37..e5b54da47b909f222d3664480c522d34d40ca1f8 100644 (file)
@@ -16,7 +16,7 @@
 
 G_BEGIN_DECLS
 
-#ifndef PLATFORM_WIN32
+#ifndef HOST_WIN32
 gint32
 Mono_Posix_Syscall_L_ctermid (void)
 {
@@ -26,13 +26,13 @@ Mono_Posix_Syscall_L_ctermid (void)
 gint32
 Mono_Posix_Syscall_L_cuserid (void)
 {
-#ifdef __APPLE__
+#if defined(__APPLE__) || defined (__OpenBSD__)
        return -1;
 #else
        return L_cuserid;
 #endif
 }
-#endif /* ndef PLATFORM_WIN32 */
+#endif /* ndef HOST_WIN32 */
 
 mph_size_t
 Mono_Posix_Stdlib_fread (unsigned char *ptr, mph_size_t size, mph_size_t nmemb, void *stream)