From 9bb469c51cf580e3ae18b21b3847488e8c4be051 Mon Sep 17 00:00:00 2001 From: M Joonas Pihlaja Date: Fri, 24 Jul 2009 06:15:46 +0300 Subject: [PATCH] [trace] Use HAVE_FLOCKFILE/FUNLOCKFILE since configure test for them. The trace source was using the flockfile() and funlockfile() functions directly. --- util/cairo-trace/trace.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/util/cairo-trace/trace.c b/util/cairo-trace/trace.c index 8298b943e..f8275a696 100644 --- a/util/cairo-trace/trace.c +++ b/util/cairo-trace/trace.c @@ -768,7 +768,9 @@ _write_lock (void) if (! _init_logfile ()) return false; +#if HAVE_FLOCKFILE && HAVE_FUNLOCKFILE flockfile (logfile); +#endif return true; } @@ -778,7 +780,9 @@ _write_unlock (void) if (logfile == NULL) return; +#if HAVE_FLOCKFILE && HAVE_FUNLOCKFILE funlockfile (logfile); +#endif if (_flush) fflush (logfile);