pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

mono-git: Restore patch-mono_io-layer_io.c - still needed



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Wed Aug 10 00:48:28 2016 +0200
Changeset:	392958f27bc4a0579534fb799557408be88ed5f7

Modified Files:
	mono-git/distinfo
Added Files:
	mono-git/patches/patch-mono_io-layer_io.c

Log Message:
mono-git: Restore patch-mono_io-layer_io.c - still needed

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=392958f27bc4a0579534fb799557408be88ed5f7

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 mono-git/distinfo                         |  1 +
 mono-git/patches/patch-mono_io-layer_io.c | 46 +++++++++++++++++++++++++++++++
 2 files changed, 47 insertions(+)

diffs:
diff --git a/mono-git/distinfo b/mono-git/distinfo
index a5e515a..db85661 100644
--- a/mono-git/distinfo
+++ b/mono-git/distinfo
@@ -4,5 +4,6 @@ SHA1 (mono-4.4.0.122.tar.bz2) = 132a8e9aa422e82ccdb776c7cc1db89ce140b0b3
 RMD160 (mono-4.4.0.122.tar.bz2) = 41d58720d7cb4f510cad64c1dbecdd9a6c9d19a1
 SHA512 (mono-4.4.0.122.tar.bz2) = 264b3779fc94e40c44f8cc637169d7f3a6367ead75b932069bc0498d53c13ea62ef5711784d1bc0767b85e0cb04424b9eee0ce7ed10772076902b55210097a10
 Size (mono-4.4.0.122.tar.bz2) = 84904723 bytes
+SHA1 (patch-mono_io-layer_io.c) = 1561bbcc949f4e5c459bdf0f6be60f572df8364c
 SHA1 (patch-mono_metadata_mono-perfcounters.c) = 8b5b6fb08333e3f2993e24e6799227daf8d5c903
 SHA1 (patch-mono_utils_mono-proclib.c) = da14c51074c2d5096699834cc29b1a222177070e
diff --git a/mono-git/patches/patch-mono_io-layer_io.c b/mono-git/patches/patch-mono_io-layer_io.c
new file mode 100644
index 0000000..c07cbf9
--- /dev/null
+++ b/mono-git/patches/patch-mono_io-layer_io.c
@@ -0,0 +1,46 @@
+$NetBSD$
+
+--- mono/io-layer/io.c.orig	2016-08-08 17:23:32.000000000 +0000
++++ mono/io-layer/io.c
+@@ -3563,23 +3563,40 @@ gboolean CreatePipe (gpointer *readpipe,
+ 	return(TRUE);
+ }
+ 
+-#ifdef HAVE_GETFSSTAT
++#if defined(HAVE_GETFSSTAT) || defined(__NetBSD__)
+ /* Darwin has getfsstat */
+ gint32 GetLogicalDriveStrings (guint32 len, gunichar2 *buf)
+ {
++#if defined(__NetBSD__)
++	struct statvfs *stats;
++#else
+ 	struct statfs *stats;
++#endif
+ 	int size, n, i;
+ 	gunichar2 *dir;
+ 	glong length, total = 0;
+ 	
++#if defined(__NetBSD__)
++	n = getvfsstat (NULL, 0, MNT_NOWAIT);
++#else
+ 	n = getfsstat (NULL, 0, MNT_NOWAIT);
++#endif
+ 	if (n == -1)
+ 		return 0;
++#if defined(__NetBSD__)
++	size = n * sizeof (struct statvfs);
++	stats = (struct statvfs *) g_malloc (size);
++#else
+ 	size = n * sizeof (struct statfs);
+ 	stats = (struct statfs *) g_malloc (size);
++#endif
+ 	if (stats == NULL)
+ 		return 0;
++#if defined(__NetBSD__)
++	if (getvfsstat (stats, size, MNT_NOWAIT) == -1){
++#else
+ 	if (getfsstat (stats, size, MNT_NOWAIT) == -1){
++#endif
+ 		g_free (stats);
+ 		return 0;
+ 	}


Home | Main Index | Thread Index | Old Index