summaryrefslogtreecommitdiff
path: root/lang/mono/patches/patch-am
blob: 7c519a6b2ea8c78aad8f98b0c279c5bb5766cabd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-am,v 1.7 2014/11/30 08:40:51 spz Exp $

--- mono/io-layer/io.c.orig	2014-10-04 09:27:43.000000000 +0000
+++ mono/io-layer/io.c
@@ -3463,7 +3463,7 @@ guint32 GetTempPath (guint32 len, gunich
 	return(ret);
 }
 
-#ifdef HAVE_GETFSSTAT
+#if (defined(HAVE_GETFSSTAT) && defined(HAVE_SYS_STATFS_H))
 /* Darwin has getfsstat */
 gint32 GetLogicalDriveStrings (guint32 len, gunichar2 *buf)
 {
@@ -4260,7 +4260,7 @@ guint32 GetDriveType(const gunichar2 *ro
 	return (drive_type);
 }
 
-#if defined (PLATFORM_MACOSX) || defined (__linux__) || defined(PLATFORM_BSD) || defined(__native_client__) || defined(__FreeBSD_kernel__)
+#if defined (PLATFORM_MACOSX) || defined (__linux__) || defined(PLATFORM_BSD) || defined(__native_client__) || defined(__FreeBSD_kernel__) || defined(PLATFORM_SOLARIS)
 static gchar*
 get_fstypename (gchar *utfpath)
 {