pkgsrc/lang/mono2/patches/patch-bi
wiz 4daf563813 Import mono-2.10.9nb3 as lang/mono2.
The Mono Project is an open development initiative sponsored by Ximian
that is working to develop an open source, Unix version of the Microsoft
.NET development platform.  Its objective is to enable Unix developers to
build and deploy cross-platform .NET Applications.  The project will
implement various technologies developed by Microsoft that have now been
submitted to the ECMA for standardization.

This package contains the major version 2 of mono.
2013-06-17 12:43:28 +00:00

37 lines
756 B
Text

$NetBSD: patch-bi,v 1.1 2013/06/17 12:43:28 wiz Exp $
--- mono/metadata/filewatcher.c.orig 2008-02-07 08:47:39.000000000 +0200
+++ mono/metadata/filewatcher.c 2008-02-07 08:52:21.000000000 +0200
@@ -44,9 +44,6 @@
gint
ves_icall_System_IO_FSW_SupportsFSW (void)
{
-#if HAVE_KQUEUE
- return 3;
-#else
MonoDl *fam_module;
int lib_used = 4; /* gamin */
int inotify_instance;
@@ -70,15 +67,22 @@
}
if (fam_module == NULL)
+#if HAVE_KQUEUE
+ return 3;
+#else
return 0;
+#endif
err = mono_dl_symbol (fam_module, "FAMNextEvent", (gpointer *) &FAMNextEvent);
g_free (err);
if (FAMNextEvent == NULL)
+#if HAVE_KQUEUE
+ return 3;
+#else
return 0;
+#endif
return lib_used;
-#endif
}
/* Almost copied from fam.h. Weird, I know */