OSDN Git Service

LinGui: mingw doesn't have lockf, ifdef out queue file locking for mingw
authorjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Wed, 28 Oct 2009 22:48:32 +0000 (22:48 +0000)
committerjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Wed, 28 Oct 2009 22:48:32 +0000 (22:48 +0000)
git-svn-id: svn://localhost/HandBrake/trunk@2898 b64f7644-9d1e-0410-96f1-a4d463321fa5

gtk/src/presets.c

index 75354b1..fe6493d 100644 (file)
@@ -1119,6 +1119,7 @@ load_plist(const gchar *name)
 gboolean
 ghb_lock_file(const gchar *name)
 {
+#if !defined(_WIN32)
        gchar *config, *path;
        int fd, lock = 0;
 
@@ -1132,6 +1133,9 @@ ghb_lock_file(const gchar *name)
        g_free(config);
        g_free(path);
        return !lock;
+#else
+       return 1;
+#endif
 }
 
 static void