mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-09 20:40:13 -04:00
38 lines
802 B
Plaintext
38 lines
802 B
Plaintext
$NetBSD: patch-bi,v 1.2 2013/05/29 11:11:12 wiz Exp $
|
|
--- mono/metadata/filewatcher.c.orig 2012-12-05 17:44:34.000000000 +0000
|
|
+++ mono/metadata/filewatcher.c
|
|
@@ -45,9 +45,6 @@ static int (*FAMNextEvent) (gpointer, gp
|
|
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;
|
|
@@ -71,15 +68,22 @@ ves_icall_System_IO_FSW_SupportsFSW (voi
|
|
}
|
|
|
|
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 */
|