pkgsrc-WIP-changes archive

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

mono-git: Add patch-mono_io-layer_io.c



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Tue Aug 9 00:54:22 2016 +0200
Changeset:	d64ea5f32d78cb7448c067531cebcf16d213891c

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

Log Message:
mono-git: Add patch-mono_io-layer_io.c

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

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 4c73132..bf42edd 100644
--- a/mono-git/distinfo
+++ b/mono-git/distinfo
@@ -5,5 +5,6 @@ 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-eglib_src_giconv.c) = b56e6d328f614d7f70e156a2458b11b36b439f28
+SHA1 (patch-mono_io-layer_io.c) = 5acc0d4fdecc36e7aab5db9d0ca38d415923a996
 SHA1 (patch-mono_utils_mono-logger.c) = 280e1bf49b79adf57823723287dbc88639d13551
 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..71bd963
--- /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 22:53:57.136538032 +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