* support/errno.c: Only export strerror_r if it's available.
[mono.git] / support / unistd.c
index 33a640895dc7fc4baee99feb6309fcaea8b195aa..c20f29513addfbe2792b2516f100daa548cf4f5a 100644 (file)
@@ -169,6 +169,7 @@ Mono_Posix_Syscall_gethostid (void)
        return gethostid ();
 }
 
+#ifdef HAVE_SETHOSTID
 gint32
 Mono_Posix_Syscall_sethostid (gint64 hostid)
 {
@@ -180,6 +181,7 @@ Mono_Posix_Syscall_sethostid (gint64 hostid)
        return sethostid ((long) hostid);
 #endif
 }
+#endif /* def HAVE_SETHOSTID */
 
 gint32
 Mono_Posix_Syscall_getdomainname (char *name, mph_size_t len)