Remove the processing of the Cecil docs
[mono.git] / support / stdio.c
index 06358d1b58c6c24cf5b792018aac338c56146b52..78c900e9d9b2afeb460a3d24d7d0614d7bf7a027 100644 (file)
@@ -16,7 +16,7 @@
 
 G_BEGIN_DECLS
 
-#ifndef PLATFORM_WIN32
+#ifndef HOST_WIN32
 gint32
 Mono_Posix_Syscall_L_ctermid (void)
 {
@@ -26,9 +26,13 @@ Mono_Posix_Syscall_L_ctermid (void)
 gint32
 Mono_Posix_Syscall_L_cuserid (void)
 {
+#ifdef __APPLE__
+       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)
@@ -204,8 +208,9 @@ Mono_Posix_Stdlib_clearerr (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;
 }