aboutsummaryrefslogtreecommitdiff
path: root/lang/mono/files/patch-mono_metadata_filewatcher.c
diff options
context:
space:
mode:
Diffstat (limited to 'lang/mono/files/patch-mono_metadata_filewatcher.c')
-rw-r--r--lang/mono/files/patch-mono_metadata_filewatcher.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/lang/mono/files/patch-mono_metadata_filewatcher.c b/lang/mono/files/patch-mono_metadata_filewatcher.c
index 3d36d76cdc31..b7c1f9eadf21 100644
--- a/lang/mono/files/patch-mono_metadata_filewatcher.c
+++ b/lang/mono/files/patch-mono_metadata_filewatcher.c
@@ -1,6 +1,6 @@
---- mono/metadata/filewatcher.c.orig Wed Jun 1 06:25:57 2005
-+++ mono/metadata/filewatcher.c Wed Jun 1 06:27:17 2005
-@@ -97,9 +97,6 @@
+--- mono/metadata/filewatcher.c.orig Thu Dec 1 18:51:19 2005
++++ mono/metadata/filewatcher.c Sun Dec 18 01:54:10 2005
+@@ -99,9 +99,6 @@
gint
ves_icall_System_IO_FSW_SupportsFSW (void)
{
@@ -9,10 +9,10 @@
-#else
GModule *fam_module;
gchar *filename;
+ int lib_used = 4; /* gamin */
+@@ -119,13 +116,19 @@
+ }
-@@ -109,13 +106,19 @@
- fam_module = g_module_open (filename, G_MODULE_BIND_LAZY);
- g_free (filename);
if (fam_module == NULL)
- return 0;
+ goto nofam;
@@ -22,7 +22,7 @@
- return 0;
+ goto nofam;
- return 2;
+ return lib_used;
+
+ nofam:
+#if HAVE_KQUEUE