G_BEGIN_DECLS
-#ifndef PLATFORM_WIN32
+#ifndef HOST_WIN32
gint32
Mono_Posix_Syscall_L_ctermid (void)
{
gint32
Mono_Posix_Syscall_L_cuserid (void)
{
+#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)
}
int
-Mono_Posix_Stdlib_perror (const char* s)
+Mono_Posix_Stdlib_perror (const char* s, int err)
{
+ errno = err;
perror (s);
return 0;
}