summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-10-28 22:48:32 +0000
committerjstebbins <[email protected]>2009-10-28 22:48:32 +0000
commit8e49cf146047a3b004ac6e0afd36a91dcc4cb901 (patch)
tree170981b8c911f815e25103af036330f0baa437e6
parent0beea80199a0bb95aebc6f4b09c50faad7531b68 (diff)
LinGui: mingw doesn't have lockf, ifdef out queue file locking for mingw
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2898 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--gtk/src/presets.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/src/presets.c b/gtk/src/presets.c
index 75354b165..fe6493dff 100644
--- a/gtk/src/presets.c
+++ b/gtk/src/presets.c
@@ -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