Do TLS using pthreads if __thread keyword not supported.
[mono.git] / mono / metadata / filewatcher.c
index 594f1c84402ffe4ed3514ba767fd368197c3aebb..68251af45c07dcfdef989e162b541ffe3ee236fe 100644 (file)
@@ -4,7 +4,7 @@
  * Authors:
  *     Gonzalo Paniagua Javier (gonzalo@ximian.com)
  *
- * (C) 2004,2005,2006 Novell, Inc. (http://www.novell.com)
+ * Copyright 2004-2009 Novell, Inc (http://www.novell.com)
  */
 
 #ifdef HAVE_CONFIG_H
@@ -16,7 +16,7 @@
 #include <mono/metadata/filewatcher.h>
 #include <mono/metadata/marshal.h>
 #include <mono/utils/mono-dl.h>
-#if (defined (PLATFORM_WIN32) && WINVER >= 0x0400)
+#ifdef PLATFORM_WIN32
 
 /*
  * TODO:
@@ -48,7 +48,6 @@ ves_icall_System_IO_FSW_SupportsFSW (void)
        return 3;
 #else
        MonoDl *fam_module;
-       gchar *filename;
        int lib_used = 4; /* gamin */
        int inotify_instance;
        void *iter;
@@ -64,12 +63,10 @@ ves_icall_System_IO_FSW_SupportsFSW (void)
 
        iter = NULL;
        fam_module = mono_dl_open ("libgamin-1.so", MONO_DL_LAZY, NULL);
-       g_free (filename);
        if (fam_module == NULL) {
                lib_used = 2; /* FAM */
                iter = NULL;
                fam_module = mono_dl_open ("libfam.so", MONO_DL_LAZY, NULL);
-               g_free (filename);
        }
 
        if (fam_module == NULL)