diff options
Diffstat (limited to 'lang/mono2/patches/patch-bi')
-rw-r--r-- | lang/mono2/patches/patch-bi | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/lang/mono2/patches/patch-bi b/lang/mono2/patches/patch-bi new file mode 100644 index 00000000000..3874a6e9bf7 --- /dev/null +++ b/lang/mono2/patches/patch-bi @@ -0,0 +1,37 @@ +$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 */ |